| |
|
| :: |
| Author |
Message |
penguin2135
Joined: 06 May 2007 Posts: 3
|
Posted: Sun May 06, 2007 3:26 pm Post subject: 404 Page for everything... |
|
|
Hello!
Recently I was optomizing my board with the advance mod rewrite.
The problem is, whenever I click something that is supposed to be optimized, I get a page not found error.
mod_rewrite is on, and I followed the instructions to the letter, but cannot seem to find what is wrong.
I have installed this mod on another board before and it worked perfectly.
My url is:
2135designs.com/phpBB2
Its really a test board for now, and I will add all credit when I make it go live.... |
|
|
| Back to top |
|
 |
|
 |
HB phpBB SEO Team

Joined: 16 Oct 2006 Posts: 809
|
Posted: Sun May 06, 2007 3:52 pm Post subject: Re: 404 Page for everything... |
|
|
| Did you update your .htaccess file? If so, please post it. |
_________________ Dan Kehn |
|
| Back to top |
|
 |
penguin2135
Joined: 06 May 2007 Posts: 3
|
Posted: Sun May 06, 2007 4:15 pm Post subject: Re: 404 Page for everything... |
|
|
Yes I did:
| Code: | RewriteEngine On
RewriteBase /phpBB2
RewriteRule ^forums.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* viewtopic.php?t=$1 [L,NC]
RewriteRule ^about([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html viewforum.php?f=$1 [L,NC]
RewriteRule ^forum-([0-9]*).* viewforum.php?f=$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next [L,NC]
# FORUM INDEX (un-comment if used)
# RewriteRule ^phpBB2/index\.html$ /phpBB2/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^phpBB2/.*/([^/]+\.html)$ /phpBB2/index.php [R=301,L]
# CATEGORIES
RewriteRule ^phpBB2/.*-c([0-9]+).html$ /phpBB2/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^phpBB2/.*-f([0-9]+)-([0-9]+).html$ /phpBB2/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^phpBB2/.*-f([0-9]+).html$ /phpBB2/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^phpBB2/.*-t([0-9]+)-([0-9]+).html$ /phpBB2/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^phpBB2/.*-t([0-9]+).html$ /phpBB2/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^phpBB2/post([0-9]+).html$ /phpBB2/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^phpBB2/member([0-9]+).html$ /phpBB2/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES |
My forum is in public_html/phpBB2
Same mod done on teini.org by me... |
|
|
| Back to top |
|
 |
noworyz PR0

Joined: 08 Jan 2007 Posts: 87
|
Posted: Sun May 06, 2007 7:47 pm Post subject: Re: 404 Page for everything... |
|
|
where do you have your .htaccess file?
is it in
/
or
/public_html/ |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14854
|
Posted: Mon May 07, 2007 10:42 am Post subject: Re: 404 Page for everything... |
|
|
Why keeping the able2know rewriterules for a new board ?
If your plan is to migrate from the able2know mod rewrite, for another live board for example, I suggest you start reading this thread.
Then, for the test board you're talking about, you just need to put your .htaccess file at the domain's root level and put this in it :
| Code: | # You could need to un-comment the following line
# Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^phpBB2/index\.html$ /phpBB2/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^phpBB2/[a-z0-9_-]*/([^/]+\.html)$ /phpBB2/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^phpBB2/[a-z0-9_-]*-c([0-9]+)\.html$ /phpBB2/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^phpBB2/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /phpBB2/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^phpBB2/[a-z0-9_-]*-f([0-9]+)\.html$ /phpBB2/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^phpBB2/[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /phpBB2/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^phpBB2/[a-z0-9_-]*-t([0-9]+)\.html$ /phpBB2/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^phpBB2/post([0-9]+)\.html$ /phpBB2/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^phpBB2/member([0-9]+)\.html$ /phpBB2/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
##################################################### |
++ |
_________________ 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 |
|
 |
penguin2135
Joined: 06 May 2007 Posts: 3
|
Posted: Mon May 07, 2007 8:10 pm Post subject: Re: 404 Page for everything... |
|
|
Thank you!
Worked like a charm!
I'm not much into htaccess so I am clueless.
Maybe one day I'll find the time to really learn how to use it (other than banning people :p ) |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|