why i cannot solve 404 problem after seo

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

Moderator: Moderators

why i cannot solve 404 problem after seo

Postby raminr63 » Thu Oct 31, 2013 8:31 am

Hi
i know this problem asked many time and i sorry for that but i cannot find any solve for that :(
yesterday i installed phpBB3-SEO-Premod_V_3-0-12 on my forum but after that all of my forum pages had 404 problem :|
so i had to disable seo for now.
My forum info:

Domain is: h t t p : / /plusmaster.ir
forum patch is: /forum
my forum address is : http://plusmaster.ir/forum/
cookies address is : /

and i use advanced mod of seo of my forum.
also i used advance option in seo so i have this . 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
    # Uncomment the statement below if you want to make use of
    # HTTP authentication and it does not already work.
    # This could be required if you are for example using PHP via Apache CGI.
    # RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    # REWRITE BASE
    RewriteBase /forum/
    # HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
    # Define fully qualified ssl aware protocol
    # RewriteCond %{SERVER_PORT}s ^(443(s)|[0-9]+s)$
    # RewriteRule ^.*$ - [env=HttpFullProto:http%2://]
    # RewriteCond %{HTTP_HOST} !^www\.plusmaster\.ir$ [NC]
    # RewriteRule ^(.*)$ %{ENV:HttpFullProto}www.plusmaster.ir/forum/$1 [QSA,L,R=301]

    # DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    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]+)/?(page([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]
    # 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]+)/?$ 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)/?(page([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]
    # UNREAD POSTS
    RewriteRule ^unreadposts(-([0-9]+))?\.html$ search.php?search_id=unreadposts&start=$2 [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
    # 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)?$ viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    # FIX RELATIVE PATHS : FILES
    RewriteRule ^.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ $1 [QSA,L,NC,R=301]
    # FIX RELATIVE PATHS : IMAGES
    RewriteRule ^.+/(styles/.*|images/.*)/$ $1 [QSA,L,NC,R=301]
    # END PHPBB PAGES
    #####################################################



i dont know what i do :(
pleas help.
raminr63
 
Posts: 4
Joined: Thu Oct 31, 2013 8:20 am

Advertisement

Re: why i cannot solve 404 problem after seo

Postby raminr63 » Thu Oct 31, 2013 1:04 pm

pleas someone help me
raminr63
 
Posts: 4
Joined: Thu Oct 31, 2013 8:20 am

Re: why i cannot solve 404 problem after seo

Postby HB » Thu Oct 31, 2013 1:52 pm

Sorry, I'm not sure what is wrong, but here's some debug suggestions:

http://stackoverflow.com/questions/9153 ... rite-rules
How to set up a local server using xampp

It's not clear from looking at your site whether you're using virtual folders or not (i.e., "forumabc/" vs. "forumabc-f2.html"). You may want to skip virtual folders for now since it's easier to debug .htaccess patterns than the "not found" exception at the end when using virtual folders. I recommend setting up a local server, installing the premod, then testing with it before going live.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1512
Joined: Mon Oct 16, 2006 2:25 am

Re: why i cannot solve 404 problem after seo

Postby raminr63 » Thu Oct 31, 2013 3:16 pm

Thank you for reply.
i use this setting:

Activate URL rewriting: yes
URL rewriting type: simple
Activate SQL Rewriting: No
Profiles and groups injection: yes
Virtual folder Profiles: yes
Profiles ID removing: yes
Common Search and User messages pages rewriting: yes
Attachment Rewriting: yes
SID Removing: NO
Highlights Removing: yes
Remove small words: yes
Virtual Folder: yes
Virtual Root: NO
Link image: yes
Activate The No duplicate: yes
Activate the Zero duplicate: yes
Strict Mode: yes
Posts Redirections: Guest

and yes i test in local (on Xampp) and every thing look ok.
BUT
In live HOST i use IIS7 & windows server 2008 64bit and with iis7 i have this problem so is thing need to config some details on iis7 but i don't know what details?!
raminr63
 
Posts: 4
Joined: Thu Oct 31, 2013 8:20 am

Re: why i cannot solve 404 problem after seo

Postby HB » Thu Oct 31, 2013 5:30 pm

Ah sorry, I know nothing about ISS7. A quick search turned up this site:

http://www.helicontech.com/isapi_rewrite/

It looks promising.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1512
Joined: Mon Oct 16, 2006 2:25 am

Re: why i cannot solve 404 problem after seo

Postby raminr63 » Sat Nov 02, 2013 11:10 am

This is not Free maybe in the future (after 45days) i have problem with that.
raminr63
 
Posts: 4
Joined: Thu Oct 31, 2013 8:20 am


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 6 guests


 
cron