Gallery Patch .htaccess folder location

Support for the phpBB3 SEO mods released in the phpBB3 SEO Toolikt forum.

Moderator: Moderators

Gallery Patch .htaccess folder location

Postby Elephantspike » Thu Aug 06, 2009 5:53 am

Hi. I have successfully updated from Advanced seo url Rewrite 0.4.8 to Ultimate Seo Rewrite 0.6.0. Now I'd like to add the Gallery seo patch, but I notice there are only two versions of the .htaccess in the install instructions, for if your phpbb installation is in your root domain or in a folder. How about if your phpbb and your .htaccess is in a folder? How do I format my .htaccess rules then?

The ACP module has this under "more options" for the Forum rules, but I'm going to need guidance on how to format my galley rewrite rules with my .htaccess at this location.

Thanks.
Elephantspike
 
Posts: 40
Joined: Mon Mar 26, 2007 3:39 pm

Advertisement

Re: Gallery Patch .htaccess folder location

Postby Typo » Thu Aug 06, 2009 7:43 am

Use the first one.
Code: Select all
>>> YOUR  FORUM FILES ARE INSTALLED IN A FOLDER <<<
____________________________________________________
AFTER THE FORUM REWRITERULES ADD :
__________________________________


#########################################################
# ALBUM REWRITE RULES               #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2009/01/15
########################
# ALBUM INDEX
RewriteRule ^phpbb/gallery/album.html$ /phpbb/gallery/index.php [QSA,L,NC]
# ALBUM PERSONAL INDEX
RewriteRule ^phpbb/gallery/user-albums/?(page([0-9]+)\.html)?$ /phpbb/gallery/index.php?mode=personal&start=$2 [QSA,L,NC]
# ALBUM
RewriteRule ^phpbb/gallery/[a-z0-9_-]*-a([0-9]+)/?(page([0-9]+)\.html)?$ /phpbb/gallery/album.php?album_id=$1&start=$3 [QSA,L,NC]
# PIC PAGE
RewriteRule ^phpbb/gallery/[a-z0-9_-]*(-a([0-9]+)/)?[a-z0-9_-]*-p([0-9]+)(-([0-9]+))?\.html$ /phpbb/gallery/image_page.php?album_id=$2&image_id=$3&start=$5 [QSA,L,NC]
# JGP
RewriteRule ^phpbb/gallery/[a-z0-9_-]*(-a([0-9]+)/)?[a-z0-9_-]*-i([0-9]+)\.jpg$ /phpbb/gallery/image.php?album_id=$2&image_id=$3 [QSA,L,NC]
# JPG THUMBNAILS
RewriteRule ^phpbb/gallery/[a-z0-9_-]*(-a([0-9]+)/)?[a-z0-9_-]*-t([0-9]+)\.jpg$ /phpbb/gallery/image.php?mode=thumbnail&album_id=$2&image_id=$3 [QSA,L,NC]
# JPG MEDIUM
RewriteRule ^phpbb/gallery/[a-z0-9_-]*(-a([0-9]+)/)?[a-z0-9_-]*-m([0-9]+)\.jpg$ /phpbb/gallery/image.php?mode=medium&album_id=$2&image_id=$3 [QSA,L,NC]
#########################################################

If your forum isn't in /phpbb/ then you will need to change all the instances of phpbb to the name of your forums folder. For instance, if your phpBB3 is in /forum/ you would change the first line from
Code: Select all
# ALBUM INDEX
RewriteRule ^phpbb/gallery/album.html$ /phpbb/gallery/index.php [QSA,L,NC]

to
Code: Select all
# ALBUM INDEX
RewriteRule ^forum/gallery/album.html$ /forum/gallery/index.php [QSA,L,NC]

and continue doing the same to all the lines, replacing phpbb with your proper folders name.

Let us know if you need any more help.

Typo
User avatar
Typo
phpBB SEO Team
phpBB SEO Team
 
Posts: 346
Joined: Sun Jan 18, 2009 11:33 am

Re: Gallery Patch .htaccess folder location

Postby Elephantspike » Thu Aug 06, 2009 9:09 pm

Ok, I did that, and its rewriting the gallery index page right, but the thumbnail links are broken images, and when you click on the album page or image page links, it rewrites the url, but it leads to a not found on this server error.

The funny thing is, I tried both ways, as well as without any album rules in the .htaccess file just to see what would change, completely deleting my cache each time, and each time the result was exactly the same.
Elephantspike
 
Posts: 40
Joined: Mon Mar 26, 2007 3:39 pm

Re: Gallery Patch .htaccess folder location

Postby dcz » Tue Aug 11, 2009 12:12 pm

Basically, you just need to add the gallery rewriterules after the phpBB ones and reproduce the same slashes and path that you see on phpBB rewriterules.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Re: Gallery Patch .htaccess folder location

Postby Ally » Fri Oct 29, 2010 12:32 am

Excuse me if I replied late.
I had also responded here ;)
http://www.phpbb-seo.com/fr/mods-phpbb- ... t5785.html
Ally
 
Posts: 31
Joined: Sun Sep 05, 2010 7:12 pm


Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 5 guests