| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
------------------------------------------------- Options +FollowSymlinks RewriteEngine on
# Set the RewriteBase to "/" for the root level to base everything on... I guess.
RewriteBase /
RewriteRule ^oldpage.php(.+) newpage.php$1&otherid=0 [R] -------------------------------------------------
The $1 should have all the variable stuff in it from the php. So I'm looking for it to essentially do this: oldpage.php?id=1 redirects to newpage.php?id=1&otherid=0 Why is this not working? Any help would be appreciated.
Give this a try:
RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule ^oldpage.php newpage.php?otherid=0&%1 [R]-Brian _______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/web-dev/email@hidden
| References: | |
| >Apache mod_rewrite question (From: Mark Wheeler <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.