RewriteRule ^http://xzact.frih.net/error/([A-Za-z0-9-]+)?$ http://www.xzact.frih.net/error.php?id=$1 [L]
Is your .htaccess file in the correct directory. Namely "/error" ?
Try this. I should be more like this
AftershockVibe: ... I'm rewriting the error.php?id$1 TO error/(.*)... I don't need to put the .htaccess into what is basically a non-existant directory.
Try below one
I'm having problem with my mod_rewrite too.
This is in my .htaccess file:
RewriteRule jokes\/(.*) jokes.php?page=$1 [L,NC]
But when I goto myurl/jokes/ it gives me 404 Not Found error.
Can anyone help me?
I figured out the problem already.
The problem was that I had file called jokes.txt and since jokes.txt could be accessed through /jokes [without the .txt extension], it clashed with my /jokes/ mod_rewrite. Now that I've renamed jokes.txt to joke.txt, my problem has been solved. =)
@Marston ... I've tried this and its working fine