| | #1 |
| Dan Neece War Room Member Join Date: 2008 Location: Phoenix,Arizona, USA.
Posts: 73
Thanks: 8
Thanked 8 Times in 8 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 |
| |
| | #2 |
| JROX.COM War Room Member Join Date: 2003 Location: Las Vegas, NV
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Blog Entries: 1 | |
|
JROX.COM Affiliate Manager - Affordable Affiliate Marketing Software | |
| |
| | #3 |
| Warrior Member Join Date: 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 War Room Member Join Date: 2009 Location: /dev/null
Posts: 138
Thanks: 6
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. Learn everything you need to know about Organic Gardening. | |
| |
|
| Bookmarks |
| Tags |
| httaccess, question |
| |