Rewrite rule causing navigation issues
Posted: Thu Oct 08, 2015 4:09 am
I have this rewrite rule
[text]
RewriteRule ^console/sales_view/([0-9]+)$ console/sales_view.php?s=$1
[/text]
It works for the innitial page (of pagination) but once I navigate to the next page, the content is still displayed, but without styling and the url looks like this
[text]
http://localhost/cms/console/sales_view/sales_view/5
[/text]
Below is the complete htaccess content
[text]
RewriteEngine on
RewriteRule ^front-end/product/([0-9]+)$ front-end/product.php?id=$1
RewriteRule ^console/sale_single_view/([0-9]+)$ console/sale_single_view.php?id=$1
RewriteRule ^console/sales_view/([0-9]+)$ console/sales_view.php?s=$1/
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [L]
[/text]
[text]
RewriteRule ^console/sales_view/([0-9]+)$ console/sales_view.php?s=$1
[/text]
It works for the innitial page (of pagination) but once I navigate to the next page, the content is still displayed, but without styling and the url looks like this
[text]
http://localhost/cms/console/sales_view/sales_view/5
[/text]
Below is the complete htaccess content
[text]
RewriteEngine on
RewriteRule ^front-end/product/([0-9]+)$ front-end/product.php?id=$1
RewriteRule ^console/sale_single_view/([0-9]+)$ console/sale_single_view.php?id=$1
RewriteRule ^console/sales_view/([0-9]+)$ console/sales_view.php?s=$1/
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [L]
[/text]