Forum Moderators: phranque
RewriteEngine On
RewriteRule ^/p/(.*)$ /index.php?page=$1
Its quite basic its meant to redirect a link like "www.foobar.com/p/bla" to "www.foobar.com/index.php?page=bla"... But it doesn't instead it just gives me a 404 error. The funny thing is if i remove the '/p/' part it works. But than it redirects all requests.
Probably a simple mistake but I have looked at it for ages and can't figure out what it is...
Thanks guys.
In simple terms, if the code is in example.com/.htaccess, then the URL-path pattern should be "^p/(.*)$" because the path to this .htaccess file is "/".
Jim