![]() | | ||||||||
| | #1 |
| Dan Neece War Room Member Join Date: Jan 2008 Location: Phoenix,Arizona, USA.
Posts: 79
Thanks: 7
Thanked 5 Times in 5 Posts
|
is there a way to pass two variables thrugh a httaccess rdirect? I want to do something like somesite.com/go/1003/somethingelse to translate to go.php?var1=1003&var2=somethingelse. If there is no /1003/ then var1 would = blank... Anyone know how to do this? Dan |
|
Special Pricing on the Ultimate Marketing Package http://www.warriorforum.com/warrior-...marketing.html | |
| | |
| | #3 |
| Warrior Member Join Date: Nov 2009
Posts: 6
Thanks: 0
Thanked 2 Times in 2 Posts
|
Try: Code: <IfModule mod_rewrite.c>
# Sets User Groups and Login URL
Options +FollowSymlinks All -Indexes
RewriteEngine On
RewriteBase /
# Causes every request to run through your-script.php
RewriteRule (.*)$ your-script.php?%{QUERY_STRING} [L]
</IfModule> |
| | |
| | #4 |
| PHP Programmer Join Date: Nov 2009 Location: /dev/null
Posts: 136
Thanks: 5
Thanked 12 Times in 12 Posts
|
If you want a wonderful tutorial on mod_rewrite, you need to see .htaccess tricks and tips.. part two: url rewriting with mod rewrite. Learned alot from this guy, and I know you will learn alot too. --m4rx |
| We are what we repeatedly do. Excellence, then, is not an act, but a HABIT. ~Aristotle Bored. Check out my blog. | |
| | |
![]() |
|
| Tags |
| httaccess, question |
| Thread Tools | |
| |
![]() |