Sussex_Chris
01-20-2011, 05:08 PM
I have the following mod rewrite process which works
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)\.([^/]*) http://127.0.0.1/test/test.php?i=$1&p=$2&t=$3 [L]
Example URL: 127.0.0.1/test/1/999.jpg. Redirects To: 127.0.0.1/test/test.php?i=1&p=999&t=jpg
I would also like to add in a variable after the image type but in an actual variable format such as:
http://127.0.0.1/myzon/1/999.jpg?r=1
Does anybody know how I could ammend my rewrite function to allow this & then redirect to test.php?i=$1&p=$2&t=$3&r=$4?
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)\.([^/]*) http://127.0.0.1/test/test.php?i=$1&p=$2&t=$3 [L]
Example URL: 127.0.0.1/test/1/999.jpg. Redirects To: 127.0.0.1/test/test.php?i=1&p=999&t=jpg
I would also like to add in a variable after the image type but in an actual variable format such as:
http://127.0.0.1/myzon/1/999.jpg?r=1
Does anybody know how I could ammend my rewrite function to allow this & then redirect to test.php?i=$1&p=$2&t=$3&r=$4?