adv mod_rewrite V0-2-4 (404 Not Found)

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

Moderator: Moderators

Postby dcz » Tue May 08, 2007 9:58 am

dcz wrote:And for the other matters, I think there are some better suitable forums and topics than this one here.


;)
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Advertisement

Postby funwadi » Tue May 08, 2007 10:01 am

Ohk. I thought you will give me some tips ;)

Anyways, thanks a lot for helping me in installed all your MODs. Your help was really supportive and effective. :)
funwadi
PR0
PR0
 
Posts: 53
Joined: Sun May 06, 2007 10:31 am
Location: UAE

Postby dcz » Tue May 08, 2007 10:21 am

Well, I'm not saying I won't, I'm just saying that we have msn and yahoo forums too, as well as a more general SEO forum to talk about such matters.

Staying focused is really important SEO wise, this is advise one ;)

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby funwadi » Wed May 09, 2007 12:56 pm

Thanks dcz. I got your point :)

By the way, there is 1 small problem left I think so. When i type http://funwadi.com/forum it opens the same whereas it should change to http://www.funwadi.com/forum right? How can i change it? Should it change or not? I have no idea. Needs your suggestion. If yes, than let me know how to change it please.

Thank You,
AB
funwadi
PR0
PR0
 
Posts: 53
Joined: Sun May 06, 2007 10:31 am
Location: UAE

Postby dcz » Thu May 10, 2007 8:36 am

This is about the www prefix in url it seems ;)

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby abhishek1711 » Wed May 23, 2007 7:39 pm

im facing same error -
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

okie have tried both with / and without it.

www.ahmedabadrocks.com/forum

used forum instead of phpbb in htaccess folder. also tried using public_html/forum as per my ftp folder path but same problem.

here is how the htaccess file looks

# 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 ^forum/index\.html$ forum/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^forum/[a-z0-9_-]*/([^/]+\.html)$ forum/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^forum/[a-z0-9_-]*-c([0-9]+)\.html$ forum/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ forum/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)\.html$ forum/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^forum/[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^forum/[a-z0-9_-]*-t([0-9]+)\.html$ forum/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ forum/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ forum/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################


any1 can help why still this error? my forum is down :oops:
abhishek1711
PR0
PR0
 
Posts: 64
Joined: Thu May 03, 2007 6:53 am

Postby dcz » Thu May 24, 2007 10:35 pm

First, you should make sure mod_rewrite is available. Then, if it's the case, it will work, it's possible that you will need to add the slash, as told in install, in the rewriterules, like this :

Code: Select all
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]


vs :
Code: Select all
RewriteRule ^forum/post([0-9]+)\.html$ forum/viewtopic.php?p=$1 [QSA,L,NC]


As well, and again, as long as mod_rewrite is available, it's possible that you'll need to replace :

Code: Select all
# Options +FollowSymlinks


with :

Code: Select all
Options +FollowSymlinks


And, make sure you upload your .htaccess at the domain's root level, eg one level above the forum/ folder, and that there is no .htaccess in the forum/ folder.

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby abhishek1711 » Sat May 26, 2007 7:37 am

hey since the time i installed this mod on my forum www.ibsrocks.com , my lastest topics at bottom links show 404 error while rest forum works fine....this is whn user is sufing as a guest

bt whn user is logged on - the latest topics link work fine

wht can be the issue? should i delete seo mod
abhishek1711
PR0
PR0
 
Posts: 64
Joined: Thu May 03, 2007 6:53 am

Postby dcz » Sat May 26, 2007 11:08 am

I guess you'll be interested into reading this post about how to migrate from the able2know mod rewrite ;)

Looks like you still need to take care about SIDs.

About your mod showing the latest topic links, it just looks like you modded it to comply with the previous able2know rewriting. You'll just need to patch it for the phpBB SEO ones. Try a quick search, we already provided solution for some of the mods outputting such topic listing. Start a new topic with a link to the mod's release if you need, we'll patch it ;)

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby abhishek1711 » Wed Jul 18, 2007 9:38 pm

hi i was able to install this mod. but whn i shifted my forum from root folder to /forum, this mod somehow shoes an error after being installed. i tried evrything the instructions said (different steps for not being in root folder etc.

i think i need som1 who knows the stuff to do it , as my forum has a bunch of mods so i dont wanna messup anyhting

plz pm me ur offer.

my forum - www.ibsrocks.com
abhishek1711
PR0
PR0
 
Posts: 64
Joined: Thu May 03, 2007 6:53 am

Postby dcz » Thu Jul 19, 2007 11:21 am

It should only be a matter of updating the rewriterules to include the forum path (forum/ in your case) in the rewriterules.

As well, you should do something to properly handle the old url redirection, and do not forget to update phpBB config as well, you need to add 'forum/' as script path in acp now.

Yoru root .htaccess should include :
Code: Select all
RewriteEngine on
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
#RewriteRule ^forum/[a-z0-9_-]+/([^/]+\.html)$ /forum/index.php [R=301,L,NC]
#RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L,NC]   
# CATEGORIES
RewriteRule ^forum/[a-z0-9_-]+-c([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^forum/[a-z0-9_-]+-f([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^forum/[a-z0-9_-]+-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^forum/[a-z0-9_-]+-t([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^forum/[a-z0-9_-]+-t([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L,NC] 
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################

# OLD FORUMS PAGES REDIRECTION
########################
# FORUM PROTECTION RULE
#RewriteRule ^[a-z0-9_-]+/([^/]+\.html)$ /forum/index.php [R=301,L,NC]
#RewriteRule ^index\.html$ /forum/index.php [QSA,L,NC]   
# CATEGORIES
RewriteRule ^[a-z0-9_-]+-c([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^[a-z0-9_-]+-f([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]+-f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^[a-z0-9_-]+-t([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^[a-z0-9_-]+-t([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L,NC] 
# POST
RewriteRule ^post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################


The second part only being here to allow the zero duplicate to http 301 redirect the old forum urls to the new ones.

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby abhishek1711 » Thu Jul 19, 2007 3:04 pm

im afraid i cant do this....i messup the entire forum u know....canu refer me som1 who can do this for me on freelance basis

plz refer to me by PM urgently !
abhishek1711
PR0
PR0
 
Posts: 64
Joined: Thu May 03, 2007 6:53 am

Postby dcz » Fri Jul 27, 2007 4:47 pm

Have you tried the .htaccess I suggested ?

You do not risk anything if you keep backups of the .htaccess you are using, you'll be able to tell if it work in no time and go back to the previous in case you do not make it.

Maybe you did find a solution ?

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Previous

Return to phpBB2 Advanced mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests