PDA

View Full Version : mod_rewrite problem


dg_name
03-07-2008, 10:49 PM
Hi, I've just installed the trial version and I'm very impressed, except:

The site where I need to install this makes use of mod_rewrite for search engine friendly URLS, if I install the calendar here (for instance):

http://mydomain.com/calendar/

And require the script from this page:

http://mydomain.com/SomeDirectory/calendar

( using require ("../calendar/calendar.php") )

I receive the message "Zend Optimizer not installed"

On the other hand if I remove my .htaccess file and set up a script here:

http://mydomain.com/SomeDirectory/calendar_test.php using the same require code, the calendar displays perfectly.

Is the script getting confused as to where the Zend Optimizer can be found because of my .htaccess mod_rewrite code? Is there a way to set that path manually and absolutely to get around the issue? Or is there some simpler way to make this work?

Any advice would be very much appreciated!

David

Brian
03-08-2008, 10:53 AM
The server is confused, not the script. The calendar never directly accesses Zend. It just depends on the server to provide it. So the issue is with the server. Check with your server administrator and see if they know how to resolve this. It may need a custom htaccess or php.ini file.

dg_name
03-08-2008, 04:28 PM
If anyone else has this problem, I figured out that I needed to exclude file type "so" in my .htaccess code, so a line like this:

rewriterule !\.(gif|jpg|png|js|css|php|html|mp3|pdf|swf|xml)$ /index\.php

should become this:

rewriterule !\.(so|gif|jpg|png|js|css|php|html|mp3|pdf|swf|xml )$ /index\.php

the mod_rewrite code prevented the Zend so file from being opened I guess.

I'm still working on a server path error problem, but hopefully this will save someone else some hair pulling... :classic: