homepage Welcome to WebmasterWorld Guest from 54.167.138.53
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Dedicated server = cgibin to cgi-bin
is a rewrite possible?
linkshark




msg:1503143
 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:
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?

 

msr986




msg:1503144
 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
Options ExecCGI

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

linkshark




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

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

msr986




msg:1503146
 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>

linkshark




msg:1503147
 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' :-)

linkshark




msg:1503148
 3:17 am on Mar 23, 2003 (gmt 0)

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

Same situation.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved