Hey Guys, I'm having a little trouble with Mod_Rewrite.. hoping someone can help.
The current code in my .htaccess file:
Basically, i want domain.com/secret/$number to act as domain/secret.php?id=$number -- I can't see what i've done wrong, i've used similar code elsewhere and it worked fine? Any help much appreciated.
I even stuck a [R] on the end of the rule to try and get it to redirect but that didn't work either.
Osprey
The current code in my .htaccess file:
QuoteRewriteEngine On
RewriteBase /
RewriteRule ^secret/(.*) secret.php?id=$1
Basically, i want domain.com/secret/$number to act as domain/secret.php?id=$number -- I can't see what i've done wrong, i've used similar code elsewhere and it worked fine? Any help much appreciated.
I even stuck a [R] on the end of the rule to try and get it to redirect but that didn't work either.
Osprey