PDA

View Full Version : Exhibit Engine with Apache RewriteEngine


bsexton
22nd of January 2003 (Wed), 22:55
I am trying to use Exhibit Engine 1.22 on an apache server using the RewriteEngine On in the .htaccess file. I am attempting to install Exhibit Engine within one of the domains that I am aliasing using the Rewrite directives in the .htaccess file. The problem is that once I access the Exhibit Engine software on the aliased domain, it changes the URI in the address field of the browser to show the main (true) domain that the other domain is aliased to. This causes errors becuase Exhibit Engine can't find some of the directories where it thinks they should be.

Other PHP based scripts that I have used let the webmaster specify an alternate domain if the one that the PHP script detects isn't the one that should be used for the domain on which you have the script installed. Can Exhibit Engine be told to use an alternate name rather than using what it detects during execution?

bsexton
23rd of January 2003 (Thu), 15:17
Turns out if you access EE 1.22 from a link on the aliased page all is OK... If you access the gallery directly, it changes the URI in the address field.

Pekka
23rd of January 2003 (Thu), 16:39
There is a line

// ini_set ("include_path",".:/home/pathtosites/mysite/mywebroot/mygallery/myfolder/");

in fetchsettings. Uncomment it

ini_set ("include_path",".:/home/pathtosites/mysite/mywebroot/mygallery/myfolder/");

and edit it to contain the server path to your gallery. This should ensure correct include paths even with RewriteEngine.