hi guyz., we curently have urls in the format: ser.<domain.com>/cgi-bin/viewprofile.cgi?ID=A123456 I would like to do a rewrite so that when i type: domain.com/A123456 it shows the content from ser.<domain.com>/cgi-bin/viewprofile.cgi?ID=A123456 Is this possible., will give 6$ via paypal for working code. Thanks Sarathy.s
Thanks solaris, Its not working., Where do i put this code?. In the .htaccess of domain.com or in the .htaccess of ser.domain.com ? Regards., Sarathy.s
Alright, I tried but I can't seem to get it to work on my cgi-bin folder. Any other folder seems fine. You might wanna give it a try anyway: RewriteEngine on RewriteRule ^([a-zA-Z0-9]+) cgi-bin/viewprofile.cgi?ID=$1 [QSA,L] Put it in your ser.domain.com's htaccess.
Hi, You want to go from one (sub)domain to another. You need to use either a redirect or you need to make the path to ser.domain.com/cgi-bin/viewprofile.cgi available under domain.com. For the redirect, try (not tested) in your domain.com's .htaccess: RewriteRule ^([a-zA-Z0-9]+)$ http://ser.domain.com/cgi-bin/viewprofile.cgi?ID=$1 Code (markup): For the other (better) solution, I need the path under domain.com. I do not need $$$, but I need inbound links. Jean-Luc
kniveswood thanks for the reply. That dint work Hi Jean, That works, But the command directly redirects to the subdomain . domain.com/A1234 redirects directly to ser.domain.com/cgi-bin/view.cgi?ID=A637134 Further domain and ser.domain.com are under 2 different servers