phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
redirect problem

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
::  
Author Message
asiaexpat
PR1
PR1


Joined: 04 Aug 2006
Posts: 121

redirect problemPosted: Tue Jan 30, 2007 1:06 pm    Post subject: redirect problem

this is what I have now--getting 500 errors
Code:

AddType application/x-httpd-php .htm .html .tpl
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^$ http://www.asia-expatsforum.com/phpBB2/portal.php [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^asia-expatsforum\.com$ [NC]
RewriteRule ^(.*) http://www.asia-expatsforum.com/$1 [QSA,L,R=301]
RewriteBase
# phpBB

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

# END PHPBB PAGES
RewriteRule ^phpBB2/sitemaps([0-9]+)\.html$ /phpBB2/sitemaps.php?c=$1 [QSA,L]
RewriteRule ^phpBB2/sitemaps\.html$ /phpBB2/sitemaps.php [QSA,L]
RewriteRule ^phpBB2/forum-m\ap\.html$ /phpBB2/sitemaps.php?fim [QSA,L]
RewriteRule ^phpBB2/.+-fmp([0-9]+)-([0-9]+)\.html$ /phpBB2/sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^phpBB2/.+-fmp([0-9]+)\.html$ /phpBB2/sitemaps.php?fmp=$1 [QSA,L]
RewriteRule ^phpBB2/.+-sc([0-9]+)\.html$ /phpBB2/sitemaps.php?c=$1 [QSA,L]
#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES         #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^phpBB2/rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /phpBB2/rss.php?$1&$2 [L]
# RSS forums
RewriteRule ^phpBB2/forums-rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /phpBB2/rss.php?forum&c&$1&$2 [L]
# RSS all
RewriteRule ^phpBB2/([a-zA-Z0-9]+)-rss([0-9]*)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /phpBB2/rss.php?$1=$2&$3&$4 [L]
# RSS forum topics
RewriteRule ^phpBB2/.+-rf([0-9]+)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /phpBB2/rss.php?forum=$1&$2&$3 [L]
# SitemapIndex
RewriteRule ^phpBB2/sitemaps\.([xml|xml\.gz]+)$ /phpBB2/sitemap.php [L]
# Sitemap modules
RewriteRule ^phpBB2/([a-zA-Z0-9]+)-sitemap\.([xml|xml\.gz]+)$ /phpBB2/sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^phpBB2/.+-gf([0-9]+)\.([xml|xml\.gz]+)$ /phpBB2/sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^phpBB2/urllist\.([txt|txt\.gz]+)$ /phpBB2/urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES      #
#########################################################
Back to top
asiaexpat
PR1
PR1


Joined: 04 Aug 2006
Posts: 121

redirect problemPosted: Tue Jan 30, 2007 1:11 pm    Post subject: Re: redirect problem

ok i changed the top part to

Code:
AddType application/x-httpd-php .htm .html .tpl
Options +FollowSymlinks
RRewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.asia-expatsforum\.com$ [NC]
RewriteRule ^(.*) http://www.asia-expatsforum.com/$1 [QSA,L,R=301]
# phpBB

as you suggested yesterday--still not working
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14854

redirect problemPosted: Tue Jan 30, 2007 1:30 pm    Post subject: Re: redirect problem

Code:
RewriteBase


Could be the problem.

It's rather :

Code:
RewriteBase /


But let's proceed step by steps, so first try this .htaccess :

Code:
AddType application/x-httpd-php .htm .html .tpl
RewriteEngine on
RewriteBase /
RewriteRule ^/?$ http://www.asia-expatsforum.com/phpBB2/portal.php [QSA,L,R=301]

# FORUM INDEX (un-comment if used)
RewriteRule ^phpBB2/index\.html$ /phpBB2/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^phpBB2/.*/([^/]+\.html)$ /phpBB2/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^phpBB2/.*-vc([0-9]+)\.html$ /phpBB2/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^phpBB2/.*-vf([0-9]+)-([0-9]+)\.html$ /phpBB2/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^phpBB2/.*-vf([0-9]+)\.html$ /phpBB2/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^phpBB2/.*-vt([0-9]+)-([0-9]+)\.html$ /phpBB2/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^phpBB2/.*-vt([0-9]+)\.html$ /phpBB2/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^phpBB2/post([0-9]+)\.html$ /phpBB2/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^phpBB2/member([0-9]+)\.html$ /phpBB2/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
RewriteRule ^phpBB2/sitemaps([0-9]+)\.html$ /phpBB2/sitemaps.php?c=$1 [QSA,L,NC]
RewriteRule ^phpBB2/sitemaps\.html$ /phpBB2/sitemaps.php [QSA,L,NC]
RewriteRule ^phpBB2/forum-m\ap\.html$ /phpBB2/sitemaps.php?fim [QSA,L,NC]
RewriteRule ^phpBB2/.+-fmp([0-9]+)-([0-9]+)\.html$ /phpBB2/sitemaps.php?fmp=$1&start=$2 [QSA,L,NC]
RewriteRule ^phpBB2/.+-fmp([0-9]+)\.html$ /phpBB2/sitemaps.php?fmp=$1 [QSA,L,NC]
RewriteRule ^phpBB2/.+-sc([0-9]+)\.html$ /phpBB2/sitemaps.php?c=$1 [QSA,L,NC]
#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES         #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^phpBB2/rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /phpBB2/rss.php?$1&$2 [L,NC]
# RSS forums
RewriteRule ^phpBB2/forums-rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /phpBB2/rss.php?forum&c&$1&$2 [L,NC]
# RSS all
RewriteRule ^phpBB2/([a-zA-Z0-9]+)-rss([0-9]*)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /phpBB2/rss.php?$1=$2&$3&$4 [L,NC]
# RSS forum topics
RewriteRule ^phpBB2/.+-rf([0-9]+)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /phpBB2/rss.php?forum=$1&$2&$3 [L,NC]
# SitemapIndex
RewriteRule ^phpBB2/sitemaps\.([xml|xml\.gz]+)$ /phpBB2/sitemap.php [L,NC]
# Sitemap modules
RewriteRule ^phpBB2/([a-zA-Z0-9]+)-sitemap\.([xml|xml\.gz]+)$ /phpBB2/sitemap.php?$1 [L,NC]
# Forum Sitemaps
RewriteRule ^phpBB2/.+-gf([0-9]+)\.([xml|xml\.gz]+)$ /phpBB2/sitemap.php?forum=$1 [L,NC]
# Yahoo! urllist.txt
RewriteRule ^phpBB2/urllist\.([txt|txt\.gz]+)$ /phpBB2/urllist.php [L,NC]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES      #
#########################################################


Then, we'll try to add :
Code:

RewriteCond %{HTTP_HOST} !^www\.asia-expatsforum\.com$ [NC]
RewriteRule ^(.*) http://www.asia-expatsforum.com/$1 [QSA,L,R=301]


After :

Code:
RewriteBase /



++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
asiaexpat
PR1
PR1


Joined: 04 Aug 2006
Posts: 121

redirect problemPosted: Tue Jan 30, 2007 1:37 pm    Post subject: Re: redirect problem

my host confirms it is htaccss problem--they just renamed it and i just uploaded as you suggested

so it is

Code:
AddType application/x-httpd-php .htm .html .tpl
RewriteEngine on
RewriteBase /
RewriteRule ^/?$ http://www.asia-expatsforum.com/phpBB2/portal.php [QSA,L,R=301]

# FORUM INDEX (un-comment if used)
RewriteRule ^phpBB2/index\.html$ /phpBB2/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^phpBB2/.*/([^/]+\.html)$ /phpBB2/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^phpBB2/.*-vc([0-9]+)\.html$ /phpBB2/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^phpBB2/.*-vf([0-9]+)-([0-9]+)\.html$ /phpBB2/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^phpBB2/.*-vf([0-9]+)\.html$ /phpBB2/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^phpBB2/.*-vt([0-9]+)-([0-9]+)\.html$ /phpBB2/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^phpBB2/.*-vt([0-9]+)\.html$ /phpBB2/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^phpBB2/post([0-9]+)\.html$ /phpBB2/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^phpBB2/member([0-9]+)\.html$ /phpBB2/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
RewriteRule ^phpBB2/sitemaps([0-9]+)\.html$ /phpBB2/sitemaps.php?c=$1 [QSA,L,NC]
RewriteRule ^phpBB2/sitemaps\.html$ /phpBB2/sitemaps.php [QSA,L,NC]
RewriteRule ^phpBB2/forum-m\ap\.html$ /phpBB2/sitemaps.php?fim [QSA,L,NC]
RewriteRule ^phpBB2/.+-fmp([0-9]+)-([0-9]+)\.html$ /phpBB2/sitemaps.php?fmp=$1&start=$2 [QSA,L,NC]
RewriteRule ^phpBB2/.+-fmp([0-9]+)\.html$ /phpBB2/sitemaps.php?fmp=$1 [QSA,L,NC]
RewriteRule ^phpBB2/.+-sc([0-9]+)\.html$ /phpBB2/sitemaps.php?c=$1 [QSA,L,NC]
#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES         #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^phpBB2/rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /phpBB2/rss.php?$1&$2 [L,NC]
# RSS forums
RewriteRule ^phpBB2/forums-rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /phpBB2/rss.php?forum&c&$1&$2 [L,NC]
# RSS all
RewriteRule ^phpBB2/([a-zA-Z0-9]+)-rss([0-9]*)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /phpBB2/rss.php?$1=$2&$3&$4 [L,NC]
# RSS forum topics
RewriteRule ^phpBB2/.+-rf([0-9]+)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ /phpBB2/rss.php?forum=$1&$2&$3 [L,NC]
# SitemapIndex
RewriteRule ^phpBB2/sitemaps\.([xml|xml\.gz]+)$ /phpBB2/sitemap.php [L,NC]
# Sitemap modules
RewriteRule ^phpBB2/([a-zA-Z0-9]+)-sitemap\.([xml|xml\.gz]+)$ /phpBB2/sitemap.php?$1 [L,NC]
# Forum Sitemaps
RewriteRule ^phpBB2/.+-gf([0-9]+)\.([xml|xml\.gz]+)$ /phpBB2/sitemap.php?forum=$1 [L,NC]
# Yahoo! urllist.txt
RewriteRule ^phpBB2/urllist\.([txt|txt\.gz]+)$ /phpBB2/urllist.php [L,NC]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES      #
#########################################################
Back to top
asiaexpat
PR1
PR1


Joined: 04 Aug 2006
Posts: 121

redirect problemPosted: Tue Jan 30, 2007 1:41 pm    Post subject: Re: redirect problem

seems to work now

when i enter http://www.asia-expatsforum.com/ it opens the portal but does not show the phpBB2/portal.php in the address bar
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14854

redirect problemPosted: Tue Jan 30, 2007 1:47 pm    Post subject: Re: redirect problem

it does for me Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
asiaexpat
PR1
PR1


Joined: 04 Aug 2006
Posts: 121

redirect problemPosted: Tue Jan 30, 2007 1:52 pm    Post subject: Re: redirect problem

so should i goa ahgwead and add this?

Code:
RewriteCond %{HTTP_HOST} !^www\.asia-expatsforum\.com$ [NC]
RewriteRule ^(.*) http://www.asia-expatsforum.com/$1 [QSA,L,R=301]



or is in not needed anymore?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14854

redirect problemPosted: Tue Jan 30, 2007 2:14 pm    Post subject: Re: redirect problem

yes after :

Code:
RewriteBase /


If it fails, we'll have to tweak the rule a bit, just take it off in case, and report Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
asiaexpat
PR1
PR1


Joined: 04 Aug 2006
Posts: 121

redirect problemPosted: Tue Jan 30, 2007 2:22 pm    Post subject: Re: redirect problem

ok i added it
and now the whole phpBB2/portal.php shows in my address window
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14854

redirect problemPosted: Tue Jan 30, 2007 2:37 pm    Post subject: Re: redirect problem

and asia-expatsforum.com Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
asiaexpat
PR1
PR1


Joined: 04 Aug 2006
Posts: 121

redirect problemPosted: Tue Jan 30, 2007 2:40 pm    Post subject: Re: redirect problem

thanks for your help again

i dont know why it took almost 24 hours for the htacess to stop working properly

it only returned error 500 about 3 hours ago
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
Page 1 of 1

Navigation Similar Topics

Jump to: