You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 312 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Googlifier + Gallery (short URLs) [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
eucarya
Nuke Soldier
Nuke Soldier


Joined: May 28, 2004
Posts: 10


PostPosted: Thu Oct 28, 2004 11:27 am Reply with quoteBack to top

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
Find all posts by eucaryaView user's profileSend private message
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Thu Nov 04, 2004 2:49 am Reply with quoteBack to top

You have also to add the header.php part.

_________________
www.vdsp.net | www.indopedia.org | www.orientalia.org | www.indology.net | www.yogadarsana.org | www.husserl.info | www.medicum.net
Find all posts by ImagoView user's profileSend private messageVisit poster's website
eucarya
Nuke Soldier
Nuke Soldier


Joined: May 28, 2004
Posts: 10


PostPosted: Thu Nov 04, 2004 7:10 am Reply with quoteBack to top

Could you please explain in more detail ?

_________________
http://www.ARTish.org
Freedom for ART
Find all posts by eucaryaView user's profileSend private message
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Sat Nov 13, 2004 4:11 am Reply with quoteBack to top

Have a look at .htaccess and header.php

The same rules you specify in the .htacces have to be put twice in the header.php - in the form of IN and OUT links. You don't seem to have done this, do you?

_________________
www.vdsp.net | www.indopedia.org | www.orientalia.org | www.indology.net | www.yogadarsana.org | www.husserl.info | www.medicum.net
Find all posts by ImagoView user's profileSend private messageVisit poster's website
eucarya
Nuke Soldier
Nuke Soldier


Joined: May 28, 2004
Posts: 10


PostPosted: Sat Nov 13, 2004 7:28 pm Reply with quoteBack to top

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
Find all posts by eucaryaView user's profileSend private message
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Sun Nov 14, 2004 8:39 am Reply with quoteBack to top

Search the forum for a ready Gallery rewrite. There is one on the EuroNuke forums for Coppermine.
Find all posts by ImagoView user's profileSend private messageVisit poster's website
eucarya
Nuke Soldier
Nuke Soldier


Joined: May 28, 2004
Posts: 10


PostPosted: Tue Dec 07, 2004 11:47 pm Reply with quoteBack to top

I am using Gallery 1.4.2pl4 not Coppermine.
Will this make a difference?

_________________
http://www.ARTish.org
Freedom for ART
Find all posts by eucaryaView user's profileSend private message
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Sat Dec 11, 2004 10:51 am Reply with quoteBack to top

At least you can follow the pattern and create your own mod_rewrite module.
Find all posts by ImagoView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.115 Seconds - 214 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::