Problems on PHPBB2

Discussions and support about the different URL Rewriting techniques for phpBB2.

Moderator: Moderators

Problems on PHPBB2

Postby JLA » Mon Apr 06, 2009 11:29 pm

We have a site we are moving from a Linux server to a Windows Server. We are also changing the domain name of the site

Everything seems to be working on the linux server but when moving to the windows server ran into some problems

1st - since URL rewrite was being used on Linux - needed to have this functionality on the Windows Server. This was enabled using ISAPI ReWrite.

Everything seemed to be working fine but we are having some problems with certain sections of the site.

When visiting the index.php or some other forum related pages, we are gettings a redirection limit error.

When pulling the logs from the rewrite module you can see what is happening.

For each loop that is being taken during the rewrite process, this is put to the error log

192.168.2.1 192.168.2.1 Mon, 06-Apr-2009 19:16:16 GMT [www.starstyleinc.com/sid#511280083][rid#18423448/initial] (2) init rewrite engine with requested uri /index.html
192.168.2.1 192.168.2.1 Mon, 06-Apr-2009 19:16:16 GMT [www.starstyleinc.com/sid#511280083][rid#18423448/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
192.168.2.1 192.168.2.1 Mon, 06-Apr-2009 19:16:16 GMT [www.starstyleinc.com/sid#511280083][rid#18423448/initial] (1) Htaccess process request d:\websites\jessicastyle\site\wwwroot\.htaccess
192.168.2.1 192.168.2.1 Mon, 06-Apr-2009 19:16:16 GMT [www.starstyleinc.com/sid#511280083][rid#18423448/initial] (3) applying pattern '^index\.html$' to uri 'index.html'
192.168.2.1 192.168.2.1 Mon, 06-Apr-2009 19:16:16 GMT [www.starstyleinc.com/sid#511280083][rid#18423448/initial] (1) Rewrite URL to >> /index.php
192.168.2.1 192.168.2.1 Mon, 06-Apr-2009 19:16:16 GMT [www.starstyleinc.com/sid#511280083][rid#18423448/initial] (2) rewrite 'index.html' -> '/index.php'
192.168.2.1 192.168.2.1 Mon, 06-Apr-2009 19:16:16 GMT [www.starstyleinc.com/sid#511280083][rid#18423448/initial] (2) internal redirect with /index.php [INTERNAL REDIRECT]

This is the contents of the HTA file

<files archive.php>
#AcceptPathInfo On # uncomment this if you have apache2
</files>

#Options +FollowSymlinks
RewriteEngine On
RewriteBase /
# FORUM INDEX (un-comment if used)
#
RewriteRule ^index\.html$ /index.php [QSA,NC,L]

# FORUM PROTECTION RULE
RewriteRule ^[a-z0-9_-]+/([^/]+\.html)$ /index.php [R=301,NC,L]
# CATEGORIES
RewriteRule ^[a-z0-9_-]*-c([0-9]+)\.html$ /index.php?c=$1 [QSA,NC,L]
# PAGINATED FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,NC,L]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,NC,L]
# PAGINATED TOPIC
RewriteRule ^[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,NC,L]
# TOPIC
RewriteRule ^[a-z0-9_-]*-t([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,NC,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,NC,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,NC,L]
# ALBUM INDEX
RewriteRule ^album\.html$ /album.php [QSA,NC,L]

# ALBUM PAGINATED INDEX
RewriteRule ^album_kk-([0-9]+)\.html$ /album_kk.php?i=$1&start=$2 [QSA,NC,L]

# ALBUM PAGINATED CAT
RewriteRule ^[a-z0-9_-]+-ac([0-9]+)-([0-9]+)\.html$ /album_cat.php?cat_id=$1&start=$2 [QSA,NC,L]
# ALBUM CAT
RewriteRule ^[a-z0-9_-]+-ac([0-9]+)\.html$ /album_cat.php?cat_id=$1 [QSA,NC,L]
# ALBUM PAGINATED PIC
RewriteRule ^[a-z0-9_-]+-sp([0-9]+)-([0-9]+)\.html$ /album_showpage.php?pic_id=$1&start=$2 [QSA,NC,L]
# ALBUM PIC with full option
RewriteRule ^[a-z0-9_-]+-sp([0-9]+)-?(full)?\.html$ /album_showpage.php?pic_id=$1&$2 [QSA,NC,L]
# ALL PICS PAGINATED
RewriteRule ^all-pics-([0-9]+)\.html$ /album_allpics.php?start=$1 [QSA,NC,L]
# ALL PICS
RewriteRule ^all-pics\.html$ /album_allpics.php [QSA,NC,L]
# THUMBNAILS
RewriteRule ^[a-z0-9_-]+-thumb([0-9]+)\.jpg$ /album_thumbnail.php?pic_id=$1 [QSA,NC,L]
# MED
RewriteRule ^[a-z0-9_-]+-mid([0-9]+)\.jpg$ /album_picm.php?pic_id=$1 [QSA,NC,L]
# FULL
RewriteRule ^[a-z0-9_-]+-pic([0-9]+)\.jpg$ /album_pic.php?pic_id=$1 [QSA,NC,L]


RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^js/index.php$ "http\:\/\/www\.starstyleinc\.com\/index\.html" [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^mobile/?$ "http\:\/\/www\.starstyleinc\.com\/mobile\/index\.php" [R=301,L]

The ISAPI Rewrite people feel their tool works fine as other pages on the site are working without issue. But it is pages such as the index.php that are having this looping problem

Thanks
JLA
 
Posts: 6
Joined: Mon Apr 06, 2009 11:06 pm

Advertisement

Re: Problems on PHPBB2

Postby dcz » Tue Apr 07, 2009 9:12 am

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: 21219
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest