| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Dedicated server = cgibin to cgi-bin|
is a rewrite possible?
| 8:26 pm on Mar 22, 2003 (gmt 0)|
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?
| 8:39 pm on Mar 22, 2003 (gmt 0)|
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.
| 8:55 pm on Mar 22, 2003 (gmt 0)|
>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?
| 9:20 pm on Mar 22, 2003 (gmt 0)|
Yes, if it works. Give it a try.
<added>Of course your cgi files will need to be loaded into the 'cgibin' directory</added>
| 9:46 pm on Mar 22, 2003 (gmt 0)|
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' :-)
| 3:17 am on Mar 23, 2003 (gmt 0)|
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