| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Dedicated server = cgibin to cgi-bin|
is a rewrite possible?
I have a large mostly dynamic site and need to move it to a dedicated server. Not a big deal.
However the dedicated server(Plesk interface) does not support a cgibin/cgi-bin alias. At least this is what I am told from my webhost.
This could be a problem as all of my dynamic pages are indexed in Google and other SEs with urls like:
If I have to use:
on the new server
Is there a way to rewrite the cgi-bin portion of the urls so that I will not get tons of 404's from the SEs? Thus preserving the indexed pages that are several yrs old.
If not what sort of redirect solution could I use that will have the least impact on my rankings?
Is your dedicated running Unix? If it is, you should be able to call your cgi scripts from which ever directory you choose. You may have to add this to your .htaccess file:
AddHandler cgi-script .cgi
If this works, you can use the old directory structure.
>AddHandler cgi-script .cgi
>If this works, you can use the old directory structure.
Yes, dedicated server is running UNIX.
Add that code to .htaccess and I can leave file references as mydonaim.com/cgibin/script.cgi?var=value on the new server without using /cgi-bin/var=value?
Yes, if it works. Give it a try.
<added>Of course your cgi files will need to be loaded into the 'cgibin' directory</added>
Yeah, the server interface won't let me make cgibin or rename cgi-bin to cgibin. The webhost is looking into it, I won't know till Monday if there is a workaround.
It's always somethin' :-)
Yup, I figured it out from this post:
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved