virtual root problem

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

virtual root problem

Postby demian » Tue Feb 10, 2009 10:03 pm

Hi,

I have installed PHPBB3 SEO Pre MOD 3.04.

It is working quite excellent, but i have one question.

My forum is running in domainname.com/forum

I would like to use virtual root ON and Virtual folder OFF.

when i config it like this, and make a .htaccess to my root of the domain, it does that what i want,
but when i open a subforum or a topic, i seemed to be logged out,
at least, it seemes, because i can make a post and submit it,
but it lookes like you are logged out.

This confuses my users, what can i do about this?

Many thanks in advance! It's a great mod!
demian
 
Posts: 3
Joined: Tue Feb 10, 2009 9:59 pm

Advertisement

Postby demian » Fri Feb 13, 2009 11:12 am

Alright, i found somekind of a solution to prevent loggin out when Virtual Root is enabled, and that is having Cookie secure: Enabled.

However, now i have a SID in my url wich i don't want to see.
Removing SID from url in the SEO settings tab does not work.

Anybody can tell me how to get rid of SID in my url while having virtual root enabled?

My forum is located in

www.domainname.nl/forum

My settings :

Cookie domain : .domainname.nl
Cookie name : phpbb3_spk123
Cookie path : /forum
Cookie secure: Enabled

Force server url settings in Serversettings : disabled
(it was enabled before with next settings)

Server protocol : http://
Domainname : www.domainname.nl
Serverport : 80
Scriptpath : /forum

My .htaccess file contains :



# 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 lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# 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 ^forum\.html$ /forum/index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([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 SIMPLE
RewriteRule ^member([0-9]+)\.html$ /forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^member([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /forum/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^group([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
RewriteRule ^([a-z0-9_-]+)(-([0-9]+))\.html$ /forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_-]+)\.html$ /forum/viewforum.php?forum_uri=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################

So,

When i disable cookie secured, phpbb keeps loggin out while virtual root is on, when i enable it, i stayed logged in, but have sid in my url.

Any suggestions to get rid of SID while having virtual root ON?
demian
 
Posts: 3
Joined: Tue Feb 10, 2009 9:59 pm

Postby SeO » Fri Feb 13, 2009 12:05 pm

I think it was due to the Cookie secure: Enabled thing, disable it unless you're actually using https protocol and then enable Force server url settings in Serversettings, should work.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby demian » Fri Feb 13, 2009 12:11 pm

Thank you for answering! :)

Youre right on the secure part, i must and cannot use that indeed, only thing is that when i disable it, i am not able to use virtual root when logged in, only when logged out it is working properly.

I think i have to live with it. No biggy.

Thnx again!
demian
 
Posts: 3
Joined: Tue Feb 10, 2009 9:59 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 5 guests