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  
 
   
Switching to virtual folder forum

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite
::  
Author Message
COOL_CORGI



Joined: 14 Feb 2008
Posts: 12

Switching to virtual folder forumPosted: Thu Mar 06, 2008 7:13 pm    Post subject: Switching to virtual folder forum

Hi,

I currently do not have the setting set to virtual folder on my board, but I will be setting it to that later, and was wondering..
Will changing to a virtual folder damage my page rank?
If so, is there a way to fix this in robots.txt?
My link is http://zyetendo.com
Back to top
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 809

Switching to virtual folder forumPosted: Thu Mar 06, 2008 10:06 pm    Post subject: Re: Switching to virtual folder forum

Should be fine as long as you properly redirect. The Zero Dupe MOD will handle it for you. Remember to triple check the headers are correct:

http://web-sniffer.net/

When you enter an "old" URL, confirm it gets 301 redirected. I advise testing it locally before making the switch on your live board (e.g., using xampp).

_________________
Dan Kehn
Back to top
Visit poster's website
COOL_CORGI



Joined: 14 Feb 2008
Posts: 12

Switching to virtual folder forumPosted: Fri Mar 07, 2008 4:50 am    Post subject: Re: Switching to virtual folder forum

Zero Duplicate is installed, but the old, non-virtual folder URLs don't redirect.
http://zyetendo.com/trade-and-meeting-reports-f13.html
See the above link^
Just a 404 error. I put in disallows in the robots.txt file for them.
Here's robots.txt:
Code:
User-agent: *
Disallow: /viewtopic.php
Disallow: /viewforum.php
Disallow: /index.php?
Disallow: /posting.php
Disallow: /search.php?
Disallow: /ucp.php
Disallow: /mcp.php
Disallow: /post
Disallow: /member
Disallow: /memberlist.php
Disallow: /faq.php
Disallow: /zyetendo-announcements-f1.html
Disallow: /zyetendo-random-forum-link-f35.html
Disallow: /general-discussion-f3.html
Disallow: /new-users-f5.html
Disallow: /suggestions-feedback-f6.html
Disallow: /ads-and-affiliates-f7.html
Disallow: /console-queries-f8.html
Disallow: /portable-powerhouses-f9.html
Disallow: /gaming-for-all-f10.html
Disallow: /nintendo-wi-fi-connection-f12.html
Disallow: /trade-and-meeting-reports-f13.html
Disallow: /wi-fi-trades-meetings-f17.html
Disallow: /animal-crossing-f19.html
Disallow: /animal-crossing-wild-world-f20.html
Disallow: /animal-crossing-wild-world-f20.html
Disallow: /animal-crossing-wii-f21.html
Disallow: /electronics-section-f23.html
Disallow: /silver-coins-f24.html
Disallow: /pokemon-diamond-pearl-f26.html
Disallow: /wii-shop-channel-f27.html
Disallow: /contests-f28.html
Disallow: /zyetendo-f29.html
Disallow: /all-video-gaming-f30.html
Disallow: /animal-crossing-f31.html
Disallow: /general-f32.html
Disallow: /creative-concoctions-f34.html
Disallow: /zyetendo-random-forum-link-f35.html
Disallow: /media-center-f36.html

Here's htaccess:
Code:
RewriteEngine on

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES ADVANCED
RewriteRule ^[a-z0-9_-]*-u([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES ADVANCED
RewriteRule ^[a-z0-9_-]*-m([0-9]+)(-([0-9]+))?\.html$ /search.php?author_id=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)\.html)?$ /viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
Back to top
GoBieN
PR0
PR0


Joined: 10 Mar 2008
Posts: 73
Location: Belgium

Switching to virtual folder forumPosted: Tue Mar 11, 2008 7:35 pm    Post subject: Re: Switching to virtual folder forum

i have the virtual folder option on to. (with also vritual root)
And i have dupes because you can reach the topic trough the new link (with the forum as virtual folder) but also trough the topic.html link
-http://www.camino-tuning.be/general-f17/topic12257.html
-http://www.camino-tuning.be/topic12257.html
-http://www.camino-tuning.be/phpBB3/viewtopic.php?t=12257

How can i make sure the redirect works.
I have mixed mod with zero-duplicate
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

Switching to virtual folder forumPosted: Wed Mar 12, 2008 11:15 am    Post subject: Re: Switching to virtual folder forum

@COOL_CORGI

This is the type of thing that can occur when you change urls, you need to redirect the old ones.

In you case, it's only the suffix to have changed .html vs / causing the new rewriterule not to be able to handle the old standard.

So, replace :

Code:
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]


with :

Code:
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(\.html|/)?(page([0-9]+)\.html)?$ /viewforum.php?f=$1&start=$4 [QSA,L,NC]


and it will do the trick for forum without pagination.

Tell me if you as well need to redirect old pagination type, in case you had some and Google already spidered it.

@GoBieN
This is normal, you just need to install / activate the zero duplicate for the redirection to occur.
Since it looks like you installed it, have you activated it in ACP ?

++

_________________
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
GoBieN
PR0
PR0


Joined: 10 Mar 2008
Posts: 73
Location: Belgium

Switching to virtual folder forumPosted: Wed Mar 12, 2008 8:59 pm    Post subject: Re: Switching to virtual folder forum

dcz wrote:

@GoBieN
This is normal, you just need to install / activate the zero duplicate for the redirection to occur.
Since it looks like you installed it, have you activated it in ACP ?

++

Quote:
No duplictate

Activate The No duplictate:
The No duplicate mod remplaces posts URLs with the corresponding Topic URL (with pagination).
It does not add any SQL, just a LEFT JOIN on a query already being performed, this could still mean a bit more work but should not be a problem for server load.
Yes
So, yes , it's activated. DO i need to put anything special in the htaccess to for zero dupe ?
Anyway, here is my htaccess:
Code:
php_value memory_limit 32M
#php_value mmcache.enable 0
php_value allow_url_fopen 1

DirectoryIndex index.php index.htm index.html

# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION
RewriteCond %{HTTP_HOST} ^camino-tuning\.be$ [NC]
RewriteRule ^(.*) http://www.camino-tuning.be/$1 [QSA,L,R=301]
#####################################################
# PHPBB SEO REWRITE RULES - MIXED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM PORTAL
# RewriteRule ^index\.html$ /phpBB3/portal.php [QSA,L,NC]
# FORUM INDEX
RewriteRule ^forum\.html$ /phpBB3/index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /phpBB3/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /phpBB3/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/topic([0-9]+)(-([0-9]+))?\.html$ /phpBB3/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /phpBB3/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^member/([^/]+)/?$ /phpBB3/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^messages/([^/]+)/?(page([0-9]+)\.html)?$ /phpBB3/search.php?author=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /phpBB3/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /phpBB3/viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /phpBB3/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)\.html)?$ /phpBB3/viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################

This .htaccess is in my root folder, phpBB is in subfolder phpBB3
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

Switching to virtual folder forumPosted: Wed Mar 12, 2008 9:37 pm    Post subject: Re: Switching to virtual folder forum

Do not confuse between the no and the zero duplicate mod, only the zero duplicate performs redirection, the no duplicate is only changing post link to topic links in the output.

++

_________________
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
GoBieN
PR0
PR0


Joined: 10 Mar 2008
Posts: 73
Location: Belgium

Switching to virtual folder forumPosted: Wed Mar 12, 2008 11:48 pm    Post subject: Re: Switching to virtual folder forum

dcz wrote:
Do not confuse between the no and the zero duplicate mod, only the zero duplicate performs redirection, the no duplicate is only changing post link to topic links in the output.

++

oh !!
Back to top
Visit poster's website
GoBieN
PR0
PR0


Joined: 10 Mar 2008
Posts: 73
Location: Belgium

Switching to virtual folder forumPosted: Thu Mar 13, 2008 12:08 am    Post subject: Re: Switching to virtual folder forum

GoBieN wrote:
dcz wrote:
Do not confuse between the no and the zero duplicate mod, only the zero duplicate performs redirection, the no duplicate is only changing post link to topic links in the output.

++

oh !!


The ZERO DUPE MOD works perfect ! Thanks
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: