The task is to change the url format of c / vse? Start = 24 to vse / page / 2; the Joomla 3 system has been tinkering around for a long time in the files / libraries/joomla/html/pagination.php and /includes/router.php found what it comes from, and that where it is sent, but I could not change the principle of display. How can something be done through .htaccess?
1 answer
Try it.
RewriteRule ^vse/page/(\d) /vse?start=$14 [L] - Almost gives 404. The bottom line is that there are categories with different names. for example krovati? start = 24 should be krovati / page / 2. - Merouzy
- @Merouzy my example is "solution in a vacuum". It works if there are no other rules anymore and there simply is a directory
/vse/page/2which, for example, contains theindex.htmlfile. In your case, everything is obviously sent to anotherrouter.php. If you now go to the linkhttp://site.com/krovati/page/2will be 404 or the page will open without any redirects and other things? - de_frag - @Merouzy or I did not understand correctly initially. You want to enter the links / vse / page / 2 in the background it worked like / vse? Start = 24 - de_frag
- Just like that. "Do you want to enter the links / vse / page / 2 in the background it works like / vse? Start = 24" - Merouzy
- @Merouzy quite simple option added in the answer. But the question remains as to how the numbers "2" and "24" are related. Plus - after the redirect, the address bar will change, and I think this is not desirable. - de_frag
|
/vse?start=24onvse/page/2? slip of the pen? Maybe so:vse/page/24? - de_frag