UBB.Dev
Posted By: DPK.ducky.quack question on .htaccess - 11/09/2003 11:09 AM
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
Posted By: Mark Schonfeld Re: question on .htaccess - 11/09/2003 11:56 AM
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?
Posted By: DPK.ducky.quack Re: question on .htaccess - 11/09/2003 11:09 PM
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.
Posted By: Mark Schonfeld Re: question on .htaccess - 11/10/2003 12:12 AM
What version of Apache are you using?
© UBB.Developers