subfolder installation

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

subfolder installation

Postby webexit » Mon Mar 17, 2008 12:18 am

I have installed premod in a subfolder named foro, where I can put the .htaccess?

When I put the .htaccess in the "foro" folder the result is obvious, a 404 error with all new url's due the "foro" prefix in the rules.
When I put the .htaccess in the root folder the result is a blank page with all new url's.


# 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 - SIMPLE
#####################################################
# 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 ^foro/forum\.html$ /foro/index.php [QSA,L,NC]
# FORUM
RewriteRule ^foro/forum([0-9]+)/?(page([0-9]+)\.html)?$ /foro/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^foro/forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /foro/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^foro/announces/topic([0-9]+)(-([0-9]+))?\.html$ /foro/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^foro/[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /foro/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^foro/member([0-9]+)\.html$ /foro/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^foro/messages([0-9]+)(-([0-9]+))?\.html$ /foro/search.php?author_id=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^foro/group([0-9]+)(-([0-9]+))?\.html$ /foro/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^foro/post([0-9]+)\.html$ /foro/viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^foro/the-team\.html$ /foro/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# END PHPBB PAGES
#####################################################
webexit
 
Posts: 3
Joined: Wed Mar 05, 2008 12:49 pm

Advertisement

Postby dcz » Sun Mar 23, 2008 2:43 pm

You can put the .htaccess in the foro/ dir, but you need to generate one meant for it.

To do so, hit the more option option in the .htaccess generator, and then, select alternate location, and voilà.

Otherwise you need to put the .htaccess in the domain root (making sure you do not have one in the foro/ dir).
The white page could mean several things.

If it does not work after what I told you, try to uncomment (meaning, delete the # at the beginning of the line) :
Code: Select all
# Options +FollowSymlinks


If it does not change anything, then comment it again, it could come from your settings, make sure you have the proper domain and paths set up in phpBB's acp.

Eventually, give a try with the zero duplicate deactivated if it was, just in case.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests