Urls not coming out quite right-premodded files

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

Urls not coming out quite right-premodded files

Postby justlooking » Sat Sep 19, 2009 5:02 pm

Installed on 3.0.5 and used the provided edited files, after having the same result installing it manually.

My urls are coming out like this

EXAMPLE:

http://www.*.com/Directory/http://www.*.com/forum2.html


Instead of


http://www.*.com/forum2.html <-- using virtual root
http://www.*.com/directory/forum2.html <-- dont really care just trying to get one way to work


Did I miss something?

Ofcourse either way I try it, it results in a 404 error any help appreciated.

Any ideas? Did I miss something?
justlooking
 
Posts: 3
Joined: Sat Sep 19, 2009 4:52 pm

Advertisement

Re: Urls not coming out quite right-premodded files

Postby justlooking » Sat Sep 19, 2009 6:18 pm

Using just the rewrite I can actually get to the url by typing in


-http://www.*.com/DIRECTORY/forum12.html


but when i turn the mod on I get


-http://www.*.com/Directory/http://www.*.com/forum12.html
justlooking
 
Posts: 3
Joined: Sat Sep 19, 2009 4:52 pm

Re: Urls not coming out quite right-premodded files

Postby Typo » Sat Sep 19, 2009 10:05 pm

May we please see your complete .htaccess?

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

Re: Urls not coming out quite right-premodded files

Postby justlooking » Sat Sep 19, 2009 11:46 pm

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



justlooking
 
Posts: 3
Joined: Sat Sep 19, 2009 4:52 pm

Re: Urls not coming out quite right-premodded files

Postby dcz » Fri Sep 25, 2009 10:48 am

So your .htaccess looks like working if manual link testing is ok. So it could be a phpBB Server and Cookie settings matter, please make sure that you have the proper settings in there.

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


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 10 guests