Previous Thread
Next Thread
Print Thread
Rate Thread
#88592 11/09/2003 4:09 AM
Joined: Nov 2000
Posts: 915
D
Developer
OP Offline
Developer
D
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
M
Member
Offline
Member
M
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
D
Developer
OP Offline
Developer
D
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
M
Member
Offline
Member
M
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
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,555
Posts293,845
Members13,842
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 184
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 6
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,813
Greg Hard 4,625
Top Posters(30 Days)
Morgan 3
isaac 2
Top Likes Received
isaac 69
Gizmo 13
Brett 7
WebGuy 2
Top Likes Received (30 Days)
isaac 3
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20201211)
Responsive Width:

PHP: 5.4.45 Page Time: 0.047s Queries: 22 (0.015s) Memory: 3.2751 MB (Peak: 3.4605 MB) Data Comp: Zlib Server Time: 2021-05-06 11:52:55 UTC
Valid HTML 5 and Valid CSS