I'm trying to implement search engine-friendly URLs using mod_rewrite. I haven't been able to get it to work yet, so I've been cutting things down to the very basics to try and find the problem. So, here are the entire contents of my .htaccess file:
Code:
RewriteEngine on
RewriteRule ^/archive$ /archive.php
Obviously, I want mydomain.com/archive to point to the file, archive.php. However, I try it out and all I get is this:
Quote:
Not Found
The requested URL /archive was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
|
I uploaded in ASCII mode and CHMOD'd to 644, like all the tutorials told me and still nothing.
mod_rewrite may be disabled on my server, but I can't think of any plausible reason why it would be.
Help?
Update:
AUGH!!!!
I just had to remove the leading forward slash? GAKLFJDSKGlhasl;kdasfj!
Sorry to trouble you all.
Last edited by Kent O'Matic; 04-07-2009 at 04:05 PM..
|