Welcome to WebmasterWorld Guest from 54.161.110.186

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Dedicated server = cgibin to cgi-bin

is a rewrite possible?

     
8:26 pm on Mar 22, 2003 (gmt 0)

10+ Year Member



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:
mydonaim.com/cgibin/script.cgi?var=value

If I have to use:
mydonaim.com/cgi-bin/script.cgi?var=value
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)

WebmasterWorld Senior Member 10+ Year Member



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
Options ExecCGI

If this works, you can use the old directory structure.

8:55 pm on Mar 22, 2003 (gmt 0)

10+ Year Member



>AddHandler cgi-script .cgi
>Options ExecCGI

>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)

WebmasterWorld Senior Member 10+ Year Member



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)

10+ Year Member



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)

10+ Year Member



Yup, I figured it out from this post:
[webmasterworld.com...]

Same situation.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month