If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!I need some more help....
I can't get to "reuse" variables I'm passing through....
here's my example:
(yes, I'm trying to redirect all "www.example.com/abcde" calls to a specific PHP script, with that "abcde" pass as variable)RewriteEngine On
RewriteRule ^[a-zA-Z]{5}$ /test.php?myvar=%1 [R=301,L]
with this, I get redirected to: "test.php?myvar=" and no value for this variable "myvar"....
I also tried using "$" instead of "%" in RewriteRule statement - but I get the same....
could anybody post a working example of passing variables to script you're redirecting with RewriteRule ?
thank you
=================
reply added:
=================
here's the solution for my latest problem:
I forgot to use ( ) and I should use $ instead if %RewriteEngine On
RewriteRule ^([a-zA-Z]{5})$ /test.php?myvar=$1 [R=301,L]
Last edited by darmar; 07-12-2007 at 10:43 AM. Reason: Automerged Doublepost
here's a nice simple tutorial I wrote:
friendly url
Bookmarks