| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
asiaexpat PR1

Joined: 04 Aug 2006 Posts: 121
|
Posted: Wed Aug 09, 2006 12:25 pm Post subject: not sure about status of my installation |
|
|
I have installed the adavanced mod rewrite etc.. here is my .htaccess file for you to check on validity
| Code: | 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
RewriteRule ^phpBB2/sitemaps.xml$ /phpBB2/sitemap.php [L]
RewriteRule ^phpBB2/forum-sitemap-([0-9]+).xml$ /phpBB2/sitemap.php?fid=$1 [L]
RewriteRule ^phpBB2/sitemap-forum.xml$ /phpBB2/sitemap.php?forum [L]
# 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
|
is this ok?? |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Aug 09, 2006 12:42 pm Post subject: Re: not sure about status of my installation |
|
|
Nice work it is working The www prefix as well, nice job
Only thing, for this part :
| Code: | 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 / |
Are you sure you need this one :
| Code: | | RewriteRule ^(.*) http://www.asia-expatsforum.com/$1 [QSA,L,R=301] | ?
It seems it was previously here for some reason such as a multi domain installation in the same folder, is so, the www prefix ones should be enough to care about this as well, no other domain than www.asia-expatsforum.com can access your site, all other will be http 301 redirected which won't break any existing links
++ |
_________________ 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 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Aug 09, 2006 12:46 pm Post subject: Re: not sure about status of my installation |
|
|
Ho and as we are talking about this, just add :
| Code: | # phpBB
RewriteRule ^phpBB2/sitemaps.xml$ /phpBB2/sitemap.php [L]
RewriteRule ^phpBB2/forum-sitemap-([0-9]+).xml$ /phpBB2/sitemap.php?fid=$1 [L]
RewriteRule ^phpBB2/sitemap-forum.xml$ /phpBB2/sitemap.php?forum [L] |
At the end of your .htaccess for the mx Google sitemaps rewritten links to work
You'll have to make sure you upload the advanced mod rewrite premodded files (the phpBB SEO advanced on in your case) located in the contrib/ folder to output the correct URLs you're using in the sitemaps.
Please ask for support on this on the mx Google sitemaps release thread
++ |
_________________ 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
Last edited by dcz on Wed Aug 09, 2006 1:09 pm; edited 1 time in total |
|
| Back to top |
|
 |
asiaexpat PR1

Joined: 04 Aug 2006 Posts: 121
|
Posted: Wed Aug 09, 2006 12:50 pm Post subject: Re: not sure about status of my installation |
|
|
those 3 lines are at the begining of file already
should I move them to the bottom?
and have already uploaded correct files to server |
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |