Short URLS

brandoncolorado

Joined: 2004-12-20
Posts: 16
Posted: Thu, 2005-04-28 12:07

The Short URL mod, can anyone give me a link to it, and how to get it to work. Basically, I just want to set it up so my users can link to their galleries i.e. www.mygallery.com/?user or whatever.

Thanks
----

Gallery URL (optional):
Gallery version:
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:
G1 version (for migration bugs):

 
pelle
pelle's picture

Joined: 2004-12-10
Posts: 389
Posted: Thu, 2005-04-28 13:40

For short URLs you need Apache mod_rewrite. Install and activate the URL Rewrite module which comes with Gallery.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-04-28 13:54

what's your g2 version? beta 2?
the short url modules ships with G2. go to site admin -> modules and install AND activate the url rewrite module. then you're done.

 
brandoncolorado

Joined: 2004-12-20
Posts: 16
Posted: Fri, 2005-04-29 11:34

ok, yeah I have Beta2 valiant. Thanks. I found it and had some trouble configuring it. I had to create the htacess file myself. Now it says that it found it and no changes are made, but where do I go to read docs on how to use it? Does it automatically set what the short url´s will be? Is there a settings place somewhere for it? Thanks Thanks.

 
brandoncolorado

Joined: 2004-12-20
Posts: 16
Posted: Fri, 2005-04-29 11:35

Because of your server configuration, we are unable to properly test whether mod_rewrite is properly installed. ***Error I get***

This is a result of trying to install gallery in a non standard directory. You need to edit line 6 in /www/c/mysite/gallery2/htdocs/modules/rewrite/test/mod_rewrite/custom/.htaccess and make sure it reads RewriteBase /modules/rewrite/test/mod_rewrite/custom/

so...this line here...
RewriteBase /modules/rewrite/test/mod_rewrite/custom/

should be??
/modules/rewrite/test/mod_rewrite/custom/

 
pelle
pelle's picture

Joined: 2004-12-10
Posts: 389
Posted: Fri, 2005-04-29 11:51

By default its#RewriteBase /<Your Gallery Location>/modules/rewrite/test/mod_rewrite/custom/

In your case it should beRewriteBase /modules/rewrite/test/mod_rewrite/custom/

brandoncolorado wrote:
ok, yeah I have Beta2 valiant.

Update to the latest nighly snapshot.