http://test.com/test.php?var1=VAR1&var2=VAR2

New to mod_rewrite? This is a good place to start.

http://test.com/test.php?var1=VAR1&var2=VAR2

Postby tommyo » Tue Jan 20, 2004 7:58 am

Can anyone help me? I am trying to redirect:

http://test.com/test/VAR1/VAR2/
to:
http://test.com/test.php?var1=VAR1&var2=VAR2

This is the content of my .htaccess file. Am i on the right track???

options followsymlinks MultiViews Includes ExecCGI
RewriteEngine On
RewriteBase /
RewriteRule ^/test/([A-Za-z]+)/([A-Za-z]+) test.php?var1=$1&var2=$2
tommyo
 

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 40 guests

cron