Fake URL redirect

fontaine1900

New member
Hello! I have a specific question that I'm hoping can be resolved.
I have a redirect URL: domain.co/go
which will have many "fake directories" after it: domain.com/go/ABC, XYZ, etc
I need to have all of these redirect to domain.co/go/?id=ABC, XYZ, etc
so that I don't have to create a million fake directories.
I'm thinking HTACCESS rule could accomplish this, but I'm stumped after searching for quite a while.
Any pointers? Hopefully it doesn't require any Apache mods, since this is a shared server and I have limited control.
Thanks!
Tim
 
You need add to .htaccess in the main directory:
Code:
RewriteRule /go/ /go.php [L]

then you can create a go.php file that will redirect where you want. The data from the link you can get from the $_SERVER variable
 
Back
Top