You are here:  » mod_rewrite problem

Support Forum



mod_rewrite problem

Submitted by Kelly and Stuart on Fri, 2008-02-22 02:20 in

Hi. We are so pleased we stumbled across this script -its has been a brilliant investment! :-)
My problem is my hosting.
Namesco doesn’t run under Apache webservers so therefore doesn’t support mod_rewrite to change urls to search engine friendly ones.
Instead it has a facility to convert Apache mod_rewrite to Zeus script.
Having tried this I just get lots of error messages (like: WARN:RequestRewrite:Label RULE_9_START defined but not used and SERIOUS:RequestRewrite:Unable to compile expansion string) and it won’t save the script. Does anyone know of a work around?
Many thanks
Kelly and Stuart

Submitted by support on Fri, 2008-02-22 08:48

Hi There,

Firstly, don't forget that Price Tapestry does not need mod_rewrite in place in order to work. As long as you have $config_useRewrite = false; in your config.php then normal URLs are generated.

I'm afraid I don't have any experience with either Namsco hosting or Zeus; but the first thing that comes to mind is whether it is capable of handling RewriteBase correctly which is in .htaccess and needs to be set to the directory in which Price Tapestry is installed. It is this line in .htaccess

RewriteBase /

As long as you have installed Price Tapestry in the top level directory, one possibility might be to remove this line and then try your Zeus processing again...

One other thread to bring to your attention, if you decide to go with Apache hosting is our recommended hosts thread, which might be worth a look:

http://www.pricetapestry.com/node/173

Cheers!
David.

Submitted by Kelly and Stuart on Fri, 2008-02-22 10:22

Hi David thanks for the quick response.

No, it hates rewrite base! This was the first thing it said -error at line 1 & 5, so I took them out. (PT is on top level)
It then actually translated the script, but when I went to validate and save it, that is when I got the errors.

Let me know if you hear of anything

many thanks
Kelly & Stuart.