help with mod_rewrite
Posted: Tue Aug 17, 2004 9:51 am
I've checked out mod_rewrite, and I thought that i'd give it a try and give my site user/search-engine -friendly URLs. The problem is that it does not matter what I do, while trying to access the pages i get 404 errors.
Here's my .htaccess which is lying in the root of the htdocs folder:
(I would have changed the ErrorDocument 404 to /404/, if it would've work but it doesn't)
How I want the URLs to work (examples):
How it currently works:
Thanks in advance
Here's my .htaccess which is lying in the root of the htdocs folder:
Code: Select all
ErrorDocument 404 /index.php?p=404
RewriteEngine On
RewriteRule ^/(їa-z0-9_-]+) /index.php?p=$1How I want the URLs to work (examples):
As you can see, I want the query-string to be turned into a user-friendly url-part, but I would prefer it be possible to use the normal query-string way too (but it's not too important).http://vigge.ath.cx/ (root) or /start/ - leads to index.php?p=start (or just index.php for root)
/files/ - leads to /index.php?p=files (ie, files section)
/econtent/?edit=somepage or /econtent/somepage/ - leads to /index.php?p=econtent&edit=somepage
How it currently works:
Any ideas?http://vigge.ath.cx/ (root) or /?p=start - leads to index.php?p=start (or just index.php for root)
/?p=files - leads to /index.php?p=files (ie, files section)
/?p=econtent&edit=somepage
Thanks in advance