| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
trainspottr
Joined: 09 Mar 2008 Posts: 2
|
Posted: Sun Mar 09, 2008 12:15 pm Post subject: .htaccess |
|
|
Having problems getting things working. Everything is good up until i enable URL redirect.. obviously its something with my .htaccess as I can load up my original .htaccess and turn off URL Redirect in ACP and it will work . It will not work with the original .htaccess and URL redirect turned on.
I just don't feel very well versed in how to troubleshoot the redirect script.
Here's my .htaccess
| 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 /
# 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 ^phpBB3/forum\.html$ /phpBB3/index.php [QSA,L,NC]
# FORUM
RewriteRule ^phpBB3/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /phpBB3/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^phpBB3/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /phpBB3/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^phpBB3/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /phpBB3/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^phpBB3/[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /phpBB3/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^phpBB3/member([0-9]+)\.html$ /phpBB3/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^phpBB3/messages([0-9]+)(-([0-9]+))?\.html$ /phpBB3/search.php?author_id=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^phpBB3/group([0-9]+)(-([0-9]+))?\.html$ /phpBB3/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^phpBB3/post([0-9]+)\.html$ /phpBB3/viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^phpBB3/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 ^phpBB3/[a-z0-9_-]+(-([0-9]+))?\.html$ /phpBB3/viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
|
Thanks in advance for your help! |
|
|
| Back to top |
|
 |
|
 |
trainspottr
Joined: 09 Mar 2008 Posts: 2
|
Posted: Sun Mar 09, 2008 12:17 pm Post subject: Re: .htaccess |
|
|
Also.. where exactly should .htaccess be places? The web root? THere are also copies in my phpbb3 root and the phpseo dir as well.. might that be a problem?  |
|
|
| Back to top |
|
 |
COOL_CORGI
Joined: 14 Feb 2008 Posts: 12
|
Posted: Sun Mar 09, 2008 11:44 pm Post subject: Re: .htaccess |
|
|
You should paste that in the domains root, e.g "public_html" folder, but if you're connecting from a FTP client, it would be the root.
You'll want to edit that into an already existing htaccess file, if you have a phpBB installed in the root. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Wed Mar 12, 2008 2:04 pm Post subject: Re: .htaccess |
|
|
| trainspottr wrote: | Also.. where exactly should .htaccess be places? The web root? THere are also copies in my phpbb3 root and the phpseo dir as well.. might that be a problem?  |
If phpBB is installed in the domain root, eg where example.com/ leads to, then, you need to generate a new .htaccess, because this one is meant to be used in the domain root with phpBB installed in the phpBB3/ dir.
You can as well delete all occurrence of "phpBB3/" in the one you posted and upload it in the domain's root, should be the same.
++ |
_________________ 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 |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |