Previous Thread
Next Thread
Print Thread
Rate Thread
#88592 11/09/2003 4:09 AM
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
I'm trying to use RedirectMatch to redirect someone trying to go somewhere to the new location of the file, but have run into a slight problem.

If the file call is something such as...
show_this.php?id=12

...it will only redirect to show_this.php and leave off the necessary id information. Any ideas?

help

Sponsored Links
#88593 11/09/2003 4:56 AM
Joined: Jul 2003
Posts: 273
Member
Member
Offline
Joined: Jul 2003
Posts: 273
possibly the question mark throwing it off. Where are you inputting the info? Do you have direct access to .htaccess or is it through some type of host editor?

#88594 11/09/2003 4:09 PM
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
I have direct access to everything. The file currently just has this in it...

Code
RedirectMatch permanent ^(.*) http://www.site.tld$1
...as I know that "works" for most things (except for what I stated earlier). I tried doing something like...

Code
RedirectMatch permanent ^/show_this.php?id=(.*) http://www.site.tld/show_this.php?id=$1
...but it does not seem to work.

#88595 11/09/2003 5:12 PM
Joined: Jul 2003
Posts: 273
Member
Member
Offline
Joined: Jul 2003
Posts: 273
What version of Apache are you using?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)