mod_rewrite

Agatka
Agatka's picture

Joined: 2002-10-19
Posts: 140
Posted: Fri, 2002-10-25 21:24

Hi all,

I have installed everything ok, but the server I have my gallery on doesn't have the mod_rewrite installed. I've contacted them about it and this is what they wrote me back:

Unfortunately, the mod_rewrite module is not available; but, we have compiled in our own version called mod_rewrit. It works virtually the same as mod_rewrite and can be used in the first level of your web directory only.

Can anyone tell me what that really means? Do I have to have all the files in my root directory? How does that work?

Thanks

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2002-10-25 21:26

I don't know why your host would do this, but I doubt it will work if it works only in the root directory.. You don't need mod_rewrite to run gallery--I recommend you just don't use it; it's doesn't take out much of the functionality.

 
Agatka
Agatka's picture

Joined: 2002-10-19
Posts: 140
Posted: Fri, 2002-10-25 21:28

I know, but I really don't like those long url's :smile:

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2002-10-25 21:31

Well you can try, gallery probably won't detect mod_rewrite, so once you install gallery, change the following thing in config.php

$gallery->app->feature["rewrite"] = 0;

to

$gallery->app->feature["rewrite"] = 1;

This may or may not work...

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Sat, 2002-10-26 08:31

Alas, that won't work 'cause Gallery won't put the rules in the .htaccess file unless it detects mod_rewrite in the wizard.

Instead, try starting the wizard with:

http://your.server/gallery/setup/index.php?init_mod_rewrite=1

that will fool the browser into thinking rewrite is enabled.

 
Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Sat, 2002-10-26 22:38

Thanks for that bit of information, Bharat! For some reason my gallery had stopped recognizing the mod_rewrite and re-running the setup the way you mentioned has it working again! :smile:

Much obliged!