| :: |
| Author |
Message |
zendavid
Joined: 23 May 2008 Posts: 6
|
Posted: Fri May 23, 2008 11:57 am Post subject: wordpress overriding everything |
|
|
Hello!
I followed some suggestions to avoid wordpress overriding the other setting at first but it only works with virtual root on =/ when i turn it off everything stops working. I want the forums to have its appropiate folder /forum/etc etc
any suggestions? |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3987
|
Posted: Fri May 23, 2008 2:51 pm Post subject: Re: wordpress overriding everything |
|
|
Do you generate a new .htaccess after you change the virtual root settings ?
The only trick to merge the phpBB3's .htaccess with the wordpress one is to put the phpBB3 rewriterules before the wordpress ones if I recall well. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
zendavid
Joined: 23 May 2008 Posts: 6
|
Posted: Fri May 23, 2008 3:03 pm Post subject: Re: wordpress overriding everything |
|
|
| Yea, I did put the htaccess information above the wordpress one (without virtual root) and it just broke =/ but when I active virtual root it just works fine. |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3987
|
|
| Back to top |
|
 |
zendavid
Joined: 23 May 2008 Posts: 6
|
Posted: Fri May 23, 2008 3:16 pm Post subject: Re: wordpress overriding everything |
|
|
| I did update the htaccess when I changed virtual root OFF, (also did it when i turned it on) |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3987
|
|
| Back to top |
|
 |
zendavid
Joined: 23 May 2008 Posts: 6
|
Posted: Fri May 23, 2008 3:38 pm Post subject: Re: wordpress overriding everything |
|
|
| Code: | # 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 /forum/
# 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 ^forum\.html$ /forum/index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /forum/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$ /forum/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$ /forum/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$ /forum/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES ADVANCED
RewriteRule ^[a-z0-9_-]*-u([0-9]+)/$ /forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES ADVANCED
RewriteRule ^[a-z0-9_-]*-u([0-9]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /forum/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ /forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ /forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ /forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /forum/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)?$ /forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} !^www\.REMOVEDSITE.org[NC]
RewriteRule ^(.*) http://www.REMOVEDSITE.org/$1 [L,R=301]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
|
The one I just pasted is the one with the virtual root On (sadly), do you want me to paste the off one too? the one is in the public_html folder, and it's also on the /forum/ folder but without the wordpress part. |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3987
|
Posted: Fri May 23, 2008 3:40 pm Post subject: Re: wordpress overriding everything |
|
|
| zendavid wrote: | | and it's also on the /forum/ folder but without the wordpress part. |
This is the problem, you need one and only one set of rewriterules for the forum. The .htaccess you posted should work in virtual root mode if you delete the .htaccess in the forum directory. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
zendavid
Joined: 23 May 2008 Posts: 6
|
Posted: Fri May 23, 2008 3:44 pm Post subject: Re: wordpress overriding everything |
|
|
| SeO wrote: | | zendavid wrote: | | and it's also on the /forum/ folder but without the wordpress part. |
This is the problem, you need one and only one set of rewriterules for the forum. The .htaccess you posted should work in virtual root mode if you delete the .htaccess in the forum directory. |
It does works right now... the problem is that it doesn't work when I turn virtual root off! |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3987
|
Posted: Fri May 23, 2008 3:46 pm Post subject: Re: wordpress overriding everything |
|
|
It does not change the value of my advice
You need one and only one .htaccess for the forum, try updating the root one with the one generated with virtual root off after you have deleted the .htaccess in the forum directory. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
zendavid
Joined: 23 May 2008 Posts: 6
|
Posted: Fri May 23, 2008 3:50 pm Post subject: Re: wordpress overriding everything |
|
|
I'm shocked... it worked Why!? oh well.. you learn something new everyday
Thanks a lot  |
|
|
| Back to top |
|
 |
|
|