htaccess problem and 404 Errors using Advanced Mod Rewrite

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

Moderator: Moderators

htaccess problem and 404 Errors using Advanced Mod Rewrite

Postby Motz » Mon Jul 06, 2009 4:09 pm

Hi there

i'm using godaddy's linux hosting with mysql, apache, etc etc... i use wordpress in my website and also bbpress and as i long as i know this hosting does support url rewrite, multiviews, etc..

today i was successful installing the Advanced Mod Re-Write mod for my phpbb 3.0 forum. The Issues Started when i was trying to configurate it.

The urls in my forum are like this:http://www.downloadhentai.net/hforum/http://www.downloadhentai.net/hforum/anime-hentai and of course it doesn't work when you put :http://www.downloadhentai.net/hforum/anime-hentai (it gives you a 404 Error), and also i cannot enter to any thread either... but when i switch the url rewriting off everything goes back to normal...

the content inside my htaccess is:

Code: Select all
# 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 FORCE CANONICAL DOMAIN
# RewriteCond %{HTTP_HOST} !^http%3a%2f%2fdownloadhentai\.net$ [NC]
# RewriteRule ^(.*)$ http%3a%2f%2fdownloadhentai.net/$1 [QSA,L,R=301]

# DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
#####################################################
# PHPBB SEO REWRITE RULES ALL MODES
#####################################################
# 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 ^hforum/forum\.html$ /hforum/index.php [QSA,L,NC]
# FORUM ALL MODES
RewriteRule ^hforum/(forum|[a-z0-9_-]*-f)([0-9]+)/?(page([0-9]+)\.html)?$ /hforum/viewforum.php?f=$2&start=$4 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^hforum/(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /hforum/viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^hforum/announces/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /hforum/viewtopic.php?t=$2&start=$4 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
RewriteRule ^hforum/([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /hforum/viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
# PHPBB FILES ALL MODES
RewriteRule ^hforum/resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /hforum/download/file.php?id=$2&t=$1 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^hforum/member/([^/]+)/?$ /hforum/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^hforum/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /hforum/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ALL MODES
RewriteRule ^hforum/(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /hforum/memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
# POST
RewriteRule ^hforum/post([0-9]+)\.html$ /hforum/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^hforum/active-topics(-([0-9]+))?\.html$ /hforum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^hforum/unanswered(-([0-9]+))?\.html$ /hforum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^hforum/newposts(-([0-9]+))?\.html$ /hforum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^hforum/the-team\.html$ /hforum/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM ALL MODES (SAME DELIM)
# THESE THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^hforum/([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /hforum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
#####################################################


and this is the one you get by default...

any idea of how to setup this?

thanks!
Motz
 
Posts: 6
Joined: Thu Apr 02, 2009 3:43 pm

Advertisement

Re: htaccess problem and 404 Errors using Advanced Mod Rewrite

Postby Typo » Tue Jul 07, 2009 12:00 am

Did you properly clear the cache? The easiest way to do this in the FTP is to just hop into the cache folder and delete all the files except the .htaccess.

Let us know if that works.

Typo
User avatar
Typo
phpBB SEO Team
phpBB SEO Team
 
Posts: 346
Joined: Sun Jan 18, 2009 11:33 am

Re: htaccess problem and 404 Errors using Advanced Mod Rewrite

Postby Motz » Tue Jul 07, 2009 12:41 am

i already did that... i went to the cache folder and erased all files but not the .htacess
Motz
 
Posts: 6
Joined: Thu Apr 02, 2009 3:43 pm

Re: htaccess problem and 404 Errors using Advanced Mod Rewrite

Postby dcz » Sat Jul 11, 2009 12:45 pm

Did you actually installed this .htaccess where the red message of the .htaccess generator told you to, and not anywhere else ?

It should be above the hforum/ directory (also make sure that you did not put one in hforum/).

If this does not solves, try replacing :
Code: Select all
# Options +FollowSymlinks

with :
Code: Select all
Options +FollowSymlinks


Or play with the right slash option.

As well, the link you posted :http://www.downloadhentai.net/hforum/anime-hentai

Is not correct, since it should have some suffix. If you removed suffixes, please put them back, as you must use some.

++
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 Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 7 guests