I have Url rewrite problem in 2.3

jaesflo

Joined: 2006-05-09
Posts: 45
Posted: Sun, 2009-08-30 17:49

I have problems with my URL rewrite, in the link the following thing appears:
http://www.mydomain.com/gallery/main.php

In this gallery I have severals albums so, animals, cities, album1 and album2 etc….

When I make click in the albumnes It appears this way:

http://www.mydomain.com/gallery/main.php/animals/pets/
http://www.mydomain.com/gallery/main.php/album1
http://www.mydomain.com/gallery/main.php/album2

I want that is shown in the correct way as:

http://www.mydomain.com/gallery/animals/pets/
http://www.mydomain.com/gallery/album1
http://www.mydomain.com/gallery/album2

I want that shows me without “main.php"

-------)
I have configured in the following way the URL Rewrite

In Gallery Plugins:
1.- URL Rewrite 1.1.18 (Install)
2.- URL Rewrite 1.1.18 (configure)
3.- I have chosen “PHP Path Info”

Which it is the problem, because it follows me showing me the “main.php”
http://www.mydomain.com/gallery/main.php/album2

--------------------)
system details:

Gallery URL = http://www.mydomain.com/gallery/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 4.4.7 cgi
Webserver = Microsoft-IIS/6.0
Database = mysqlt 4.1.22-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux colorado.micfo.com 2.6.28.6-VISION #1 SMP Tue Mar 3 16:41:33 CST 2009 i686
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Rows in GalleryAccessMap table = 32
Rows in GalleryAccessSubscriberMap table = 4
Rows in GalleryUser table = 2
Rows in GalleryItem table = 2
Rows in GalleryAlbumItem table = 2
Rows in GalleryCacheMap table = 0

Visit my gallery of Arequipa Perú

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2009-08-30 23:33

Uninstall the urlrewite module and install it again, this time click the mod_rewrite (Apache) option on the configuration page

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jaesflo

Joined: 2006-05-09
Posts: 45
Posted: Mon, 2009-08-31 04:10

It shows me this to which I make him click:

IIS ISAPI_Rewrite "This is an Link"
This method allows for short URLs on IIS servers with ISAPI Rewrite installed. Gallery will try to detect if your server supports this method before activating the module.
* A pattern may not begin with a keyword.
----------------------------------------------------------------------------
PHP Path Info "This is an Link"
Using Path Info is supported by most systems. With this method Gallery parses the URL itself during the request.
* It is recomended that you don't activate the 'Download Item' URL since it will slow down Gallery.
* Block hotlinking is not supported.

-----------------------

I have activated PHP Path Info, but it shows me similar with main.php"

Visit the gallery of Arequipa Perú

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-08-31 23:46

Sorry don't know much about windows servers. Try each method then and see if the behavior changes.

Dave
____________________________________________
Blog & G2 || floridave - Gallery Team

 
jaesflo

Joined: 2006-05-09
Posts: 45
Posted: Tue, 2009-09-01 18:55

In plugin from URL Rewrite is "URL Rewrite 1.1.18 - 1.1.18 - Enables short URLs using Apache mod_rewrite, ISAPI Rewrite, or PathInfo"

Where is Apache mod_rewrite. in my system gallery 2.3

If my system where I have installed my gallery it is system linux, it should be enabled the mod_rewrite, but alone this activated the two options of Windows

That it is what I have to make to enable the Apache mod_rewrite

-----------------------------------------------------------------------------------------
Visit the gallery of Arequipa Perú

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-09-01 19:58

You're using IIS, you can't use Apache mod_rewrite, you can only use ISAPI Rewrite and possibly PathInfo.

If you want to run Windows and use mod_rewrite, install Apache. I'd suggest using XAMPP: http://www.apachefriends.org/en/xampp.html
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here