mod isn't working

phpBB3 SEO Mixed mod Rewrite support forum. This mods performs URL rewriting for phpBB3, injecting forums in their URLs and keeping a static rewriting for topics.

Moderator: Moderators

mod isn't working

Postby wafaa » Sat Mar 21, 2009 3:53 am

Hi all,

I recently installed the permod to an existing phpbb3 forum

when I look int the acp I find three mod rewrites

now, I want to select the mixed mod

when I do so, I can't view any forum or topic.

it show me the page not found.

I have a robots.txt file

in the files

Code: Select all
User-agent: *
Disallow: /forum/viewtopic.php
Disallow: /forum/viewforum.php
Disallow: /forum/index.php?
Disallow: /forum/posting.php
Disallow: /forum/search.php?
Disallow: /forum/ucp.php
Disallow: /forum/mcp.php
Disallow: /forum/post
Disallow: /forum/member
Disallow: /forum/memberlist.php
Disallow: /forum/faq.php


also the .htaccess contains

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 ADD THE WWW PREFIXE REDIRECTION

    #####################################################
    # PHPBB SEO REWRITE RULES - MIXED
    #####################################################
    # AUTHOR : dcz www.phpbb-seo.com
    # STARTED : 01/2006
    #################################
    # FORUMS PAGES
    ###############
    # FORUM INDEX
    RewriteRule ^forum\.html$ /board/index.php [QSA,L,NC]
    # FORUM
    RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /board/viewforum.php?f=$1&start=$3 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER
    RewriteRule ^[a-z0-9_-]*-f([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /board/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
    # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
    RewriteRule ^announces/topic([0-9]+)(-([0-9]+))?\.html$ /board/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM
    RewriteRule ^([a-z0-9_-]*)/?topic([0-9]+)(-([0-9]+))?\.html$ /board/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
    # PROFILES THROUGH USERNAME
    RewriteRule ^member/([^/]+)/?$ /board/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
    # USER MESSAGES THROUGH USERNAME
    RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /board/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
    # GROUPS ADVANCED
    RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /board/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
    # POST
    RewriteRule ^post([0-9]+)\.html$ /board/viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^active-topics(-([0-9]+))?\.html$ /board/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^unanswered(-([0-9]+))?\.html$ /board/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^newposts(-([0-9]+))?\.html$ /board/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
    # THE TEAM
    RewriteRule ^the-team\.html$ /board/memberlist.php?mode=leaders [QSA,L,NC]
    # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

    #####################################################
    # GYM Sitemaps & RSS
    # Global channels
    # NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
    # BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
    # WITH PROPER SLASHES AND PATHS
    # RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ /gymrss.php?channels&$2&$4&$6 [QSA,L,NC]
    # HTML Global news & maps
    # NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
    # BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
    # WITH PROPER SLASHES AND PATHS
    # RewriteRule ^(news|maps)/?(page([0-9]+)\.html)?$ /map.php?$1&start=$3 [QSA,L,NC]
    # END GYM Sitemaps & RSS
    #####################################################

    # FORUM WITHOUT ID & 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 ^([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /board/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    # END PHPBB PAGES
    #####################################################

    #####################################################
    # GYM Sitemaps & RSS
    # HTML Module additional modes
    # NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
    # BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
    # WITH PROPER SLASHES AND PATHS
    # RewriteRule ^(news|maps)/([a-z0-9_-]+)(/([a-z0-9_-]+))?/?(page([0-9]+)\.html)?$ /map.php?$2=$4&$1&start=$6 [QSA,L,NC]
    # Main feeds & channels
    # NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
    # BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
    # WITH PROPER SLASHES AND PATHS
    # RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?(/([a-z0-9_-]+))?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$9=$8&$2&$4&$6&gzip=$10 [QSA,L,NC]
    # Module feeds
    # NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
    # BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
    # WITH PROPER SLASHES AND PATHS
    # RewriteRule ^[a-z0-9_-]*-[a-z]+([0-9]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$8=$1&$3&$5&$7&gzip=$9 [QSA,L,NC]
    # Module feeds without ids
    # NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
    # BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
    # WITH PROPER SLASHES AND PATHS
    # RewriteRule ^([a-z0-9_-]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?nametoid=$1&$3&$5&$7&modulename=$8&gzip=$9 [QSA,L,NC]
    # Google SitemapIndex
    # NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
    # BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
    # WITH PROPER SLASHES AND PATHS
    # RewriteRule ^sitemapindex\.xml(\.gz)?$ /sitemap.php?gzip=$1 [QSA,L,NC]
    # Module cat sitemaps
    # NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
    # BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
    # WITH PROPER SLASHES AND PATHS
    # RewriteRule ^[a-z0-9_-]+-([a-z]+)([0-9]+)\.xml(\.gz)?$ /sitemap.php?module_sep=$1&module_sub=$2&gzip=$3 [QSA,L,NC]
    # Module sitemaps
    # NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
    # BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
    # WITH PROPER SLASHES AND PATHS
    # RewriteRule ^([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$ /sitemap.php?$1=$2&gzip=$3 [QSA,L,NC]
    # END GYM Sitemaps & RSS
    #####################################################


what should I do?

I'm completely confused :?
wafaa
 
Posts: 15
Joined: Mon Jan 12, 2009 12:39 am

Advertisement

Re: mod isn't working

Postby wafaa » Sun Mar 22, 2009 3:44 am

here is the site

www.waleedsamara.byethost13.com/forum


please anyone helpI'm so confused :(
wafaa
 
Posts: 15
Joined: Mon Jan 12, 2009 12:39 am

Re: mod isn't working

Postby dcz » Sun Mar 22, 2009 3:47 pm

Since your forum is installed in -www.waleedsamara.byethost13.com/forum you must have some problem with your phpBB server config in acp since the .htaccess mention another path for it : board/
So make sure you have :
Code: Select all
server name : www.waleedsamara.byethost13.com
script path : /forum
cookie domain:.waleedsamara.byethost13.com

In acp.

And then generate a new .htaccess and place it where the red message tels you to. As well make sure you actually want to use the virtual root option since this is the kind of choice that require some thinking.

++
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

Re: mod isn't working

Postby wafaa » Tue Mar 24, 2009 5:33 am

ok

I fixed the acp

and that happened because I'm using another database for an old forum

now

I made the hatacces file

and as the message says

Once you are ready, you can select the .htaccess code, and paste it in a .htaccess file or use the "Save .htaccess" option bellow.
This .htaccess is meant to be used in the domain's root folder, which in your case is where http://www.waleedsamara.byethost13.com/ leads to in your FTP.


I understood that I have to put the file in

root
-http://www.waleedsamara.byethost13.com


I put the file in both

-http://www.waleedsamara.byethost13.com
-http://www.waleedsamara.byethost13.com/forum

and this worked finally :D

again this what hatacces file contains

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 ADD THE WWW PREFIXE REDIRECTION

    #####################################################
    # PHPBB SEO REWRITE RULES - MIXED
    #####################################################
    # AUTHOR : dcz www.phpbb-seo.com
    # STARTED : 01/2006
    #################################
    # FORUMS PAGES
    ###############
    # FORUM INDEX
    RewriteRule ^forum\.html$ /forum/index.php [QSA,L,NC]
    # FORUM
    RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER
    RewriteRule ^[a-z0-9_-]*-f([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
    # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
    RewriteRule ^announces/topic([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM
    RewriteRule ^([a-z0-9_-]*)/?topic([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
    # PROFILES THROUGH USERNAME
    RewriteRule ^member/([^/]+)/?$ /forum/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
    # USER MESSAGES THROUGH USERNAME
    RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /forum/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
    # GROUPS ADVANCED
    RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
    # POST
    RewriteRule ^post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^active-topics(-([0-9]+))?\.html$ /forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^unanswered(-([0-9]+))?\.html$ /forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^newposts(-([0-9]+))?\.html$ /forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
    # THE TEAM
    RewriteRule ^the-team\.html$ /forum/memberlist.php?mode=leaders [QSA,L,NC]
    # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

    #####################################################
    # GYM Sitemaps & RSS
    # Global channels
    RewriteRule ^forum/rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ /forum/gymrss.php?channels&$2&$4&$6 [QSA,L,NC]
    # HTML Global news & maps
    RewriteRule ^forum/(news|maps)/?(page([0-9]+)\.html)?$ /forum/map.php?$1&start=$3 [QSA,L,NC]
    # END GYM Sitemaps & RSS
    #####################################################

    # FORUM WITHOUT ID & 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 ^([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    # END PHPBB PAGES
    #####################################################

    #####################################################
    # GYM Sitemaps & RSS
    # HTML Module additional modes
    RewriteRule ^forum/(news|maps)/([a-z0-9_-]+)(/([a-z0-9_-]+))?/?(page([0-9]+)\.html)?$ /forum/map.php?$2=$4&$1&start=$6 [QSA,L,NC]
    # Main feeds & channels
    RewriteRule ^forum/rss(/(news)+)?(/(digest)+)?(/(short|long)+)?(/([a-z0-9_-]+))?/([a-z0-9_]+)\.xml(\.gz)?$ /forum/gymrss.php?$9=$8&$2&$4&$6&gzip=$10 [QSA,L,NC]
    # Module feeds
    RewriteRule ^forum/[a-z0-9_-]*-[a-z]+([0-9]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /forum/gymrss.php?$8=$1&$3&$5&$7&gzip=$9 [QSA,L,NC]
    # Module feeds without ids
    RewriteRule ^forum/([a-z0-9_-]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /forum/gymrss.php?nametoid=$1&$3&$5&$7&modulename=$8&gzip=$9 [QSA,L,NC]
    # Google SitemapIndex
    RewriteRule ^forum/sitemapindex\.xml(\.gz)?$ /forum/sitemap.php?gzip=$1 [QSA,L,NC]
    # Module cat sitemaps
    RewriteRule ^forum/[a-z0-9_-]+-([a-z]+)([0-9]+)\.xml(\.gz)?$ /forum/sitemap.php?module_sep=$1&module_sub=$2&gzip=$3 [QSA,L,NC]
    # Module sitemaps
    RewriteRule ^forum/([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$ /forum/sitemap.php?$1=$2&gzip=$3 [QSA,L,NC]
    # END GYM Sitemaps & RSS
    #####################################################


do I miss anything else that might cause me problem?

now I'm concerned about the links

-http://www.waleedsamara.byethost13.com/forum-f71/?sid=d8cf27c5f7f433926d1c520e409ce9f5

well forum-f71 :?:

can I name each forum by its name?

in the mod acp

I can find somethins about that

and each forum got aname like the above with numbers

if I change them, would anything happen?
also when I logged out and tried to log in again, it give me an error :|

sorry, I got too many question but I'm just new :)
wafaa
 
Posts: 15
Joined: Mon Jan 12, 2009 12:39 am

Re: mod isn't working

Postby wafaa » Tue Mar 24, 2009 7:50 am

ok here what is going on

somtimes when I view the forum it won't appear

instead it redirect me to facebook :|

another problem is the style

I'm using style livex

which is subsilver

I applied all the codes changes but

Code: Select all
#-----[ OPEN ]------------------------------------------
## MOD Title:       Advanced phpBB3 SEO mod Rewrite
#

styles/subsilver2/template/viewtopic_body.html

#
#-----[ FIND ]------------------------------------------
#

<a href="#wrapheader">

#
#-----[ REPLACE WITH ]------------------------------------------
#

<a href="{U_VIEW_TOPIC}#wrapheader">


I couldn't apply it because, I didn't find the

<a href="#wrapheader">

here is the file

Code: Select all
No one will read this much code sorry


another problem with the style is when I did the codes some thing disapper


here is the actual pic of the style before I moded it

http://www.filaty.com/i/802/80a0796.livexff2.png


finally, when I click

sitemap beside each forum

as an example

-http://www.waleedsamara.byethost13.com/forum/map.php?forum=65

an error appear

when also try to view

the news

-http://www.waleedsamara.byethost13.com/forum/map.php?forum=65&news


another error appear

template->_tpl_load_file(): File ./styles/liveX/template/gym_sitemaps/display_posts_list.html does not exist or is empty

this is completely confusing

I compared the subsilver files with the livex

no file is messing

what is the problem then?

here is an access to the forum

name: test

password: 123456

have a look at how the style go crazy and change :|
wafaa
 
Posts: 15
Joined: Mon Jan 12, 2009 12:39 am

Re: mod isn't working

Postby ibrar_mirza » Wed Mar 25, 2009 11:30 am

hello admin

after one year i am again as i got busy last year. My problem is that my forum is not picking the seo mod. as i have hard coded in the .htaccess about the url as index.html goes to index.php and it is working fine. but mod is not changing the links urls and i don't know how it will generate url so that i can write it manualy to check if it works.

here is my forum kindly check and update

forums.paktubevideos.com
ibrar_mirza
 
Posts: 8
Joined: Sun Apr 06, 2008 11:46 am

Re: mod isn't working

Postby wafaa » Fri Mar 27, 2009 4:07 am

please help admin :?

I have tried 3 styles and no thing worked

the styles looks terrible
:cry:
wafaa
 
Posts: 15
Joined: Mon Jan 12, 2009 12:39 am

Re: mod isn't working

Postby ibrar_mirza » Fri Mar 27, 2009 6:06 pm

wafaa wrote:please help admin :?

I have tried 3 styles and no thing worked

the styles looks terrible
:cry:

oh sorry wafaa i think i have interrupted your discussion
ibrar_mirza
 
Posts: 8
Joined: Sun Apr 06, 2008 11:46 am

Re: mod isn't working

Postby wafaa » Fri Mar 27, 2009 8:34 pm

no problem :wink:

we just need the admin :mrgreen:
wafaa
 
Posts: 15
Joined: Mon Jan 12, 2009 12:39 am


Return to Mixed SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Google Feedfetcher and 22 guests