problem with url rewriting "the requested URL was not found"

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

problem with url rewriting "the requested URL was not found"

Postby Casper2004 » Wed Jul 08, 2009 7:21 pm

Hi all
I have installed phpbb-seo 3.5, and proudly can say its the best and awesomest forum ever but i have a problem

I set the rewrite option to yes,i copied whats written in .htaccess in url rewriting settings to .htaccess file, i placed file in this root directory

127.0.0.1/Casper2004/

and in cache folder, i deleted all files except .htaccess

here it is my .htaccess file content

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} !^127\.0\.0\.1$ [NC]
    # RewriteRule ^(.*)$ http://127.0.0.1/$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 ^Casper2004/forum\.html$ /Casper2004/index.php [QSA,L,NC]
    # FORUM ALL MODES
    RewriteRule ^Casper2004/(forum|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html$ /Casper2004/viewforum.php?f=$2&start=$4 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER ALL MODES
    RewriteRule ^Casper2004/(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /Casper2004/viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
    # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER ALL MODES
    RewriteRule ^Casper2004/announces/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /Casper2004/viewtopic.php?t=$2&start=$4 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM ALL MODES
    RewriteRule ^Casper2004/([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /Casper2004/viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
    # PHPBB FILES ALL MODES
    RewriteRule ^Casper2004/resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /Casper2004/download/file.php?id=$2&t=$1 [QSA,L,NC]
    # PROFILES ALL MODES WITH ID
    RewriteRule ^Casper2004/(member|[a-z0-9_-]*-u)([0-9]+)\.html$ /Casper2004/memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]
    # USER MESSAGES ALL MODES WITH ID
    RewriteRule ^Casper2004/(member|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /Casper2004/search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC]
    # GROUPS ALL MODES
    RewriteRule ^Casper2004/(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /Casper2004/memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
    # POST
    RewriteRule ^Casper2004/post([0-9]+)\.html$ /Casper2004/viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^Casper2004/active-topics(-([0-9]+))?\.html$ /Casper2004/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^Casper2004/unanswered(-([0-9]+))?\.html$ /Casper2004/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^Casper2004/newposts(-([0-9]+))?\.html$ /Casper2004/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
    # THE TEAM
    RewriteRule ^Casper2004/the-team\.html$ /Casper2004/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 FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^Casper2004/([a-z0-9_-]+)(-([0-9]+))\.html$ /Casper2004/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^Casper2004/([a-z0-9_-]+)\.html$ /Casper2004/viewforum.php?forum_uri=$1 [QSA,L,NC]
    # END PHPBB PAGES
    #####################################################


when i click on "Your first forum" topic it gives me

Code: Select all
    Object not found!

    The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

    If you think this is a server error, please contact the webmaster.

    Error 404

    127.0.0.1
    07/08/09 01:10:10
    Apache/2.2.11 (Win32) PHP/5.2.8


i searched all over the forum for my problem, i did the proposed suggestions, but i didn't get any results. if someone please can tell me whats wrong with the configurations i did, i did exactly whats been told to me from the searched topics.

your help is really appreciated


Regards

Casper
Casper2004
 
Posts: 8
Joined: Tue Jul 07, 2009 9:55 pm

Advertisement

Re: problem with url rewriting "the requested URL was not found"

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

It's just because you did not generate a new .htaccess after you changed your profiles url option to profiles without ids.

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

Re: problem with url rewriting "the requested URL was not found"

Postby Casper2004 » Sun Jul 12, 2009 7:19 pm

Good day dcz

first im sorry for the double topics,

I'm overwritting .htaccess in cache, and in root directory with the new generated settings, what am i supposed to do else that?

please if you can provide me with instructions

regards
Casper
Casper2004
 
Posts: 8
Joined: Tue Jul 07, 2009 9:55 pm

Re: problem with url rewriting "the requested URL was not found"

Postby Professional » Mon Jul 13, 2009 4:41 am

Casper2004 wrote:
I'm overwritting .htaccess in cache, and in root directory with the new generated settings, what am i supposed to do else that?


after generating new htaccess and put it at correct location just clear phpbb cache and your style cache
آگهی استخدام - مرجع آموزش موبایل ایرانیان
My Handwritings: Professional Dreams
Every Thing That U Feel,Is Every Thing That I Feel.
User avatar
Professional
PR5
PR5
 
Posts: 549
Joined: Mon Apr 07, 2008 5:41 am
Location: 1/2 of the World

Re: problem with url rewriting "the requested URL was not found"

Postby Casper2004 » Wed Jul 15, 2009 6:36 am

Dear Professional

I did all the following :-

1- activated url rewriting
2- choosing simple mode
3-i went to .httaccess and seletected the new .httaccess, past in the root directory, cleared cache, and update the .httaccess in the cache too
4- there is no cache in styles

its been weeks, since im tryin the suggested proposals in this site, but without any progress,

at last, i still have the same ugly message "the requested url wasn't found"

your help is really appreciated

Regards

Casper
Casper2004
 
Posts: 8
Joined: Tue Jul 07, 2009 9:55 pm

Re: problem with url rewriting "the requested URL was not found"

Postby Casper2004 » Wed Jul 15, 2009 10:23 am

I was googling and found that in apache conf file this line was commented
#LoadModule rewrite_module modules/mod_rewrite.so

i uncommitted it

LoadModule rewrite_module modules/mod_rewrite.so

that means, url rewriting wasn't enabled at my server right?
Casper2004
 
Posts: 8
Joined: Tue Jul 07, 2009 9:55 pm

Re: problem with url rewriting "the requested URL was not found"

Postby Professional » Wed Jul 15, 2009 3:05 pm

Casper2004 wrote:I was googling and found that in apache conf file this line was commented
#LoadModule rewrite_module modules/mod_rewrite.so

i uncommitted it

LoadModule rewrite_module modules/mod_rewrite.so

that means, url rewriting wasn't enabled at my server right?


yes correct. :shock:
آگهی استخدام - مرجع آموزش موبایل ایرانیان
My Handwritings: Professional Dreams
Every Thing That U Feel,Is Every Thing That I Feel.
User avatar
Professional
PR5
PR5
 
Posts: 549
Joined: Mon Apr 07, 2008 5:41 am
Location: 1/2 of the World

Re: problem with url rewriting "the requested URL was not found"

Postby Casper2004 » Wed Jul 15, 2009 3:33 pm

Hello prof

I did the following steps, and i still get Error 404

1- i'm using windows xp sp-2, easyphp 3
2- enabled url rewriting (
Code: Select all
LoadModule rewrite_module modules/mod_rewrite.so)

and changed

Code: Select all
<Directory />
    Options FollowSymLinks
    AllowOverride All ---> was None
    Order deny,allow
    Deny from all
</Directory>


3- installed phpBB3-SEO-Premod_V_3-0-5

so my form is in the following directory
Code: Select all
C:\Program Files\EasyPHP 3.0\www\phpBB3-SEO-Premod_V_3-0-5\root


4- i enabled url rewriting option , generated .htaccess, copied n pasted it in .htaccess, moved file to the sugguested place which is written in red bold font which is
Code: Select all
C:\Program Files\EasyPHP 3.0\www\phpBB3-SEO-Premod_V_3-0-5\root


5- cleared cache in
Code: Select all
C:\Program Files\EasyPHP 3.0\www\phpBB3-SEO-Premod_V_3-0-5\root


thats what it has been said as instructions to follow, but until now i didn't make it

that's my .htaccess

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} !^localhost$ [NC]
# RewriteRule ^(.*)$ http://localhost/$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 ^phpBB3-SEO-Premod_V_3-0-5/root/forum\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/index.php [QSA,L,NC]
# FORUM ALL MODES
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/(forum|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/viewforum.php?f=$2&start=$4 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/announces/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/viewtopic.php?t=$2&start=$4 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
# PHPBB FILES ALL MODES
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /phpBB3-SEO-Premod_V_3-0-5/root/download/file.php?id=$2&t=$1 [QSA,L,NC]
# PROFILES ALL MODES WITH ID
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/(member|[a-z0-9_-]*-u)([0-9]+)\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]
# USER MESSAGES ALL MODES WITH ID
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/(member|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC]
# GROUPS ALL MODES
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
# POST
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/post([0-9]+)\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/active-topics(-([0-9]+))?\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/unanswered(-([0-9]+))?\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/newposts(-([0-9]+))?\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/the-team\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/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 FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/([a-z0-9_-]+)(-([0-9]+))\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^phpBB3-SEO-Premod_V_3-0-5/root/([a-z0-9_-]+)\.html$ /phpBB3-SEO-Premod_V_3-0-5/root/viewforum.php?forum_uri=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################



if you can tell me what's wrong with my steps, did i miss something, is there something with my .htaccess file?

Thanks in advance

Regards

Casper
Casper2004
 
Posts: 8
Joined: Tue Jul 07, 2009 9:55 pm

Re: problem with url rewriting "the requested URL was not found"

Postby dcz » Fri Jul 17, 2009 9:29 am

But, are all your rewritten url 404 or only profile ones ?

And are your phpBB server setting set right ?

Side topic, I would use xampp in favor to easyphp ;)
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: 21291
Joined: Fri Apr 28, 2006 9:03 pm

Re: problem with url rewriting "the requested URL was not found"

Postby Casper2004 » Fri Jul 17, 2009 10:24 am

Dear dcz

yea, all my urls give me 404 message

what do you mean by server settings? im on my localhost.

Ok im gonna try it with xampp, and inform you with news

Regards

Casper
Casper2004
 
Posts: 8
Joined: Tue Jul 07, 2009 9:55 pm

Re: problem with url rewriting "the requested URL was not found"

Postby dcz » Fri Jul 17, 2009 10:36 am

Casper2004 wrote:what do you mean by server settings? im on my localhost.


I fixed my link, so follow it, because localhost is a server still ;)
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: 21291
Joined: Fri Apr 28, 2006 9:03 pm

Re: problem with url rewriting "the requested URL was not found"

Postby Casper2004 » Sat Jul 18, 2009 9:58 am

dcz wrote:
Casper2004 wrote:what do you mean by server settings? im on my localhost.


I fixed my link, so follow it, because localhost is a server still ;)


Dear dcz

I installed xampp, i followed instructions in url server settings, and i still have same problem, im sure that i enabled url rewriting, and here are my configurations as screen shots

and my .htaccess

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 /phpBB3-SEO-Premod_V_3-0-5/root/
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
# RewriteCond %{HTTP_HOST} !^localhost$ [NC]
# RewriteRule ^(.*)$ http://localhost/phpBB3-SEO-Premod_V_3-0-5/root/$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 ^/forum\.html$ /index.php [QSA,L,NC]
# FORUM ALL MODES
RewriteRule ^/(forum|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html$ /viewforum.php?f=$2&start=$4 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^/(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^/announces/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$2&start=$4 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
RewriteRule ^/([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
# PHPBB FILES ALL MODES
RewriteRule ^/resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /download/file.php?id=$2&t=$1 [QSA,L,NC]
# PROFILES ALL MODES WITH ID
RewriteRule ^/(member|[a-z0-9_-]*-u)([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]
# USER MESSAGES ALL MODES WITH ID
RewriteRule ^/(member|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC]
# GROUPS ALL MODES
RewriteRule ^/(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
# POST
RewriteRule ^/post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^/active-topics(-([0-9]+))?\.html$ /search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^/unanswered(-([0-9]+))?\.html$ /search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^/newposts(-([0-9]+))?\.html$ /search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^/the-team\.html$ /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 FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/([a-z0-9_-]+)(-([0-9]+))\.html$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/([a-z0-9_-]+)\.html$ /viewforum.php?forum_uri=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################



i cleared cache, i replaced .htaccess in the suggested place . and still got 404 error

i know im such a pain in the neck, thanks for the help again

Regards

Casper
Attachments
3.JPG
2.JPG
1.JPG
Casper2004
 
Posts: 8
Joined: Tue Jul 07, 2009 9:55 pm

Re: problem with url rewriting "the requested URL was not found"

Postby dcz » Sat Jul 18, 2009 10:03 am

With xampp; you do not need to use any of the slash options for the .htaccess (which you did on the .htaccess you posted).
Then, you do not need to install the premod this deep, a single sub directory should be enough, but it should not cause trouble to do it, it's just less convenient IMO.

Last but not least, you may need to follow the advices provided here : phpBB SEO Ultimate SEO URL V 0.6.0

In the Some advices section ;)
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: 21291
Joined: Fri Apr 28, 2006 9:03 pm

Re: problem with url rewriting "the requested URL was not found"

Postby peto » Fri Jan 01, 2010 7:19 pm

Casper2004 wrote:Hello prof

I did the following steps, and i still get Error 404

1- i'm using windows xp sp-2, easyphp 3
2- enabled url rewriting (
Code: Select all
LoadModule rewrite_module modules/mod_rewrite.so)

and changed

Code: Select all
<Directory />
    Options FollowSymLinks
    AllowOverride All ---> was None
    Order deny,allow
    Deny from all
</Directory>


3- installed phpBB3-SEO-Premod_V_3-0-5

so my form is in the following directory
Code: Select all
C:\Program Files\EasyPHP 3.0\www\phpBB3-SEO-Premod_V_3-0-5\root



"c:\Program Files\EasyPHP5.3.0\apache\conf\httpd.conf"

# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride none -> change to All
peto
 
Posts: 8
Joined: Sat Dec 26, 2009 9:58 pm


Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests