mod-rewrite for search engine optimisation
Posted: Tue Jun 27, 2006 3:44 pm
I've rewritten the following into .htaccess so that the url http://www.mydomain.com/okelly/okelly01 ... ticleId=56 will be reproduced as http://www.mydomain/page56.htm but i'm getting a 404 error on Apache (win2000).
Q1. I've filed .htaccess to \htdocs\ Is this correct or does .htaccess go to \htdocs\okelly\
I've tried both & neither work
Q2. Have I coded this correctly?
Thanks in advance
Q1. I've filed .htaccess to \htdocs\ Is this correct or does .htaccess go to \htdocs\okelly\
I've tried both & neither work
Q2. Have I coded this correctly?
Code: Select all
RewriteEngine on
RewriteBase /okelly
RewriteRule ^page([^.]+).*$okelly01.php?ArticleID=$1 [T=application/x-httpd-php]