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  
 
   
subfolder installation

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



Joined: 05 Mar 2008
Posts: 3

subfolder installationPosted: Mon Mar 17, 2008 12:18 am    Post subject: subfolder installation

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
#####################################################
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

subfolder installationPosted: Sun Mar 23, 2008 2:43 pm    Post subject: Re: subfolder installation

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:
# 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 || 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
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: