ramesh - 2015-10-07 18:11:55
I'm use the following code:
RewriteEngine on
RewriteRule ^(.*)\.html$ $1.php
RewriteRule ^index\.html$ index.php [T=application/x-httpd-php,L]
RewriteRule ^contactus\.html$ contactus.php
RewriteRule ^pages/([0-9]+)/?$ page.php?PID=$1 [L,QSA]
This code is working fine but I have go to page.php?PID=1 show the page in http://localhost/ecom/pages/1 after I have click the home page means it's not redirected properly.
It's going to this link http://localhost/ecom/pages/index.html
How can remove 'pages' inside the URL?