| Author |
Message |
eucarya
Nuke Soldier


Joined: May 28, 2004
Posts: 10
|
Posted:
Thu Oct 28, 2004 11:27 am |
  |
Hello,
When configuring the gallery module, it uses mod_rewrite for shortURLs. However, when enabling Googlifier on my site:
phpNuke7.4
Gallery1.4.4
FreeBSD
PHP5
Apache2
it disables the shortURL .htaccess code for the galleries.
My question is this:
Here is the .htaccess code created by Gallery for short URLs:
| Code: |
# BEGIN Gallery section
# (Automatically generated. Do not edit this section)
# Note: still under development, so format may change.
# If you edit this file, make a backup before runnng the Config. Wizard.
php_value post_max_size 20971520
php_value upload_max_filesize 20971520
php_value magic_quotes_gpc off
php_value session.save_handler files
<IfModule sapi_apache2.c>
php_value session.bug_compat_warn off
</IfModule>
<IfModule mod_php4.c>
php_flag session.bug_compat_warn off
</IfModule>
Options -Indexes +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /modules/gallery/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)/([0-9]+)$ /modules/gallery/view_photo.php?set_albumName=$1&index=$2 [QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)/([A-Za-z_0-9\-]+)$ /modules/gallery/view_photo.php?set_albumName=$1&id=$2 [QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)/$ /modules/gallery/$1 [R]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)$ /modules/gallery/view_album.php?set_albumName=$1 [QSA]
</IfModule>
# END Gallery section. Add User changes below this line
|
How would I incorporate that, specifically the
| Code: |
| <IfModule mod_rewrite.c> |
into the Googlifier code:
| Code: |
#Gallery
RewriteRule ^gallery.html gate.html?name=gallery
RewriteRule ^gallery-page([0-9]*).html gate.html?op=modload&name=gallery&file=index&include=albums.php&set_albumListPage=$1
RewriteRule ^gallery.html gate.html?op=modload&name=gallery&file=index&include=albums.php
RewriteRule ^gallery-photo_([a-zA-Z0-9_-]*)-([a-zA-Z0-9_-]*).html gate.html?set_albumName=$1&id=$2&op=modload&name=gallery&file=index&include=view_photo.php
RewriteRule ^gallery-album_([a-zA-Z0-9_-]*)-page([0-9]*).html gate.html?set_albumName=$1&op=modload&name=gallery&file=index&include=view_album.php&page=$2
RewriteRule ^gallery-album_([a-zA-Z0-9_-]*).html gate.html?set_albumName=$1&op=modload&name=gallery&file=index&include=view_album.php
|
Any help is much appreciated!
Thanks,
~tony |
_________________ http://www.ARTish.org
Freedom for ART |
|
   |
 |
Imago
Captain


Joined: Jan 17, 2003
Posts: 629
Location: Europe
|
Posted:
Thu Nov 04, 2004 2:49 am |
  |
|
    |
 |
eucarya
Nuke Soldier


Joined: May 28, 2004
Posts: 10
|
Posted:
Thu Nov 04, 2004 7:10 am |
  |
|
   |
 |
Imago
Captain


Joined: Jan 17, 2003
Posts: 629
Location: Europe
|
Posted:
Sat Nov 13, 2004 4:11 am |
  |
|
    |
 |
eucarya
Nuke Soldier


Joined: May 28, 2004
Posts: 10
|
Posted:
Sat Nov 13, 2004 7:28 pm |
  |
No, I have not done that.
I do not know how to format the IN and OUT links in the header.php arrays.
Can you help please? |
_________________ http://www.ARTish.org
Freedom for ART |
|
   |
 |
Imago
Captain


Joined: Jan 17, 2003
Posts: 629
Location: Europe
|
Posted:
Sun Nov 14, 2004 8:39 am |
  |
Search the forum for a ready Gallery rewrite. There is one on the EuroNuke forums for Coppermine. |
|
|
    |
 |
eucarya
Nuke Soldier


Joined: May 28, 2004
Posts: 10
|
Posted:
Tue Dec 07, 2004 11:47 pm |
  |
I am using Gallery 1.4.2pl4 not Coppermine.
Will this make a difference? |
_________________ http://www.ARTish.org
Freedom for ART |
|
   |
 |
Imago
Captain


Joined: Jan 17, 2003
Posts: 629
Location: Europe
|
Posted:
Sat Dec 11, 2004 10:51 am |
  |
At least you can follow the pattern and create your own mod_rewrite module. |
|
|
    |
 |
|
|