Help with URL formatting please

1320Video

Joined: 2007-07-23
Posts: 21
Posted: Sun, 2008-05-25 16:28

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://72.51.34.232/gallery/
Gallery version: 1.5.7
Apache version: Unsure
PHP version (don't just say PHP 4, please): Unsure
Graphics Toolkit: ImageMagik
Operating system: CentOS 8

Can you guys tell me how to get rid of the "view_album.php?set_albumName=" in the URL for my galleries? I'm using an old version of Gallery1 on my old server that I'm getting rid of, here's what the URL looks like on my new server:

http://72.51.34.232/gallery/view_album.php?set_albumName=album454

This is what I want it to look like (and it does on my current server): http://www.1320video.com/gallery/album454

Kyle
http://www.1320video.com

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2008-05-25 17:25

Hello,

your webserver needs to suport URL-rewriting. If this is enabled or not is shown in step 1 of the config wizard.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
1320Video

Joined: 2007-07-23
Posts: 21
Posted: Sun, 2008-05-25 18:36

Thanks Jens!

I'll check that out.

It's a dedicated server so I can configure whatever I need to. If it supports it, what do I need to do?

Kyle
http://www.1320video.com

 
1320Video

Joined: 2007-07-23
Posts: 21
Posted: Mon, 2008-05-26 14:56
 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2008-05-26 16:00

Even with a Smiley _I_ don't like "bumps".

Anyway, did you use e.g. google for the hint given in step 1 of the configwizard?
Seems not.

You need to install/activate the mod_rewrite modul in your apache.
Then you need to make sure that php_value commands in .htaccess files are handled.
This can be done e.g. like this:
<Directory /srv/www/htdocs/gallery>
AllowOverride Options FileInfo
</Directory>
(apache restart/reload)
After this you create a .htacces file in the gallery dir and rerun the config wizard.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
1320Video

Joined: 2007-07-23
Posts: 21
Posted: Mon, 2008-05-26 16:05

Sorry for the impatient no0b bump, I really do appreciate the help! It's been a long frustrating weekend, sorry about that.

Kyle

Kyle
http://www.1320video.com

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2008-05-26 16:07

Ok.

If my answer was too short, just write again.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
1320Video

Joined: 2007-07-23
Posts: 21
Posted: Mon, 2008-05-26 16:15

Nope, that's fine, I was uploading 6500 pictures when I read this and then forgot to go back and look at the config section after they were done so I didn't get that far, shame on me ;)

I just need to find someone who can edit apache because I'm not great at that!

Kyle
http://www.1320video.com

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2008-05-26 16:25

Maybe the module is already installed, but just the .conf entry is not there.

Have a look at your phpinfo and look for mod_rewrite in Loaded Modules in the Apache2handler section

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
1320Video

Joined: 2007-07-23
Posts: 21
Posted: Mon, 2008-05-26 16:33

Yup, it's there in the modules section... what would I do to enable it?

Kyle
http://www.1320video.com

 
1320Video

Joined: 2007-07-23
Posts: 21
Posted: Mon, 2008-05-26 22:38

Got it all sorted out, thanks a bunch guys!

Kyle
http://www.1320video.com