Forum Moderators: phranque

Message Too Old, No Replies

.htaccess Rewrite question

.htaccess Rewrite question

         

rcrew

12:15 am on Jan 21, 2005 (gmt 0)



I need to get a .htaccess Rewrite working for an integration project I'm working on and am having problems with it.

I'm trying to run a PHP script that works perfectly in a PHP/Apache environment to run in a PHP as CGI environment.

I want to be able to rewrite this url:
[MySite.com...]

to this:
[MySite.com...]

Specifically, I want to replace "/cgi-bin/php4" in all URL's with "/odp/index.php" (preserving the "?c=/Arts/" (or whatever comes after the?) at the end of the URL.

Can anyone help me with what the .htacces file needs to look like. I don't know Regex and am going nuts trying to figure it out.

Thanks

jdMorgan

4:07 pm on Jan 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



rcrew,

Welcome to WebmasterWorld!

Please post your code so far, so we have something to look at and discuss.

For more information and some useful links to reference material, please see our forum charter [webmasterworld.com].

Jim