phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Peoblem with .htaccess

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
narenxp



Joined: 18 Apr 2008
Posts: 3

Peoblem with .htaccessPosted: Fri Apr 18, 2008 11:47 am    Post subject: Peoblem with .htaccess

Hi.
I have my forum at domainname.com/web/forum

Everything has installed fine and when I activated url rewriting, the links in my home page changed to short urls like -http://web.domainname.com/forum/xxxx.html

When I click on a category, It is showing 404 error

The following is the .htaccess file. Please tell me what changes to make and where should I place this file??

Code:
    # 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 line
    # Options +FollowSymlinks
    # 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 - ADVANCED
    #####################################################
    # 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/forum\.html$ /forum/index.php [QSA,L,NC]
    # FORUM
    RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER
    RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
    # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
    RewriteRule ^forum/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM
    RewriteRule ^forum/[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # PROFILES THROUGH USERNAME
    RewriteRule ^forum/member/([^/]+)/?$ /forum/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
    # USER MESSAGES THROUGH USERNAME
    RewriteRule ^forum/messages/([^/]+)/?(page([0-9]+)\.html)?$ /forum/search.php?author=$1&sr=posts&start=$3 [QSA,L,NC]
    # GROUPS ADVANCED
    RewriteRule ^forum/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
    # POST
    RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
    # THE TEAM
    RewriteRule ^forum/the-team\.html$ /forum/memberlist.php?mode=leaders [QSA,L,NC]
    # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

    # FORUM WITHOUT ID & DELIM
    # THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule ^forum/[a-z0-9_-]+(-([0-9]+))?\.html$ /forum/viewforum.php?start=$2 [QSA,L,NC]
    # END PHPBB PAGES
    #####################################################


Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

Peoblem with .htaccessPosted: Sun Apr 20, 2008 12:42 pm    Post subject: Re: Peoblem with .htaccess

If the domain shown in the generated links on the forum pages does not match the one where phpBB is installed, it most likely means that the wrong domain is set up as the phpBB domain in the ACP.

Make sure that domain and script path are correct in the ACP.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
narenxp



Joined: 18 Apr 2008
Posts: 3

Peoblem with .htaccessPosted: Mon Apr 21, 2008 5:21 pm    Post subject: Re: Peoblem with .htaccess

thanx. done some work and finally got it working.

But, there is a problem, in the topic page,under the user
the avatar, and other information disappeared...

i have installed advanced seo... Please help me out...
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

Peoblem with .htaccessPosted: Tue Apr 22, 2008 8:15 am    Post subject: Re: Peoblem with .htaccess

Have yo cleared both your template and theme's cache in the style ACP after install ?

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
narenxp



Joined: 18 Apr 2008
Posts: 3

Peoblem with .htaccessPosted: Tue Apr 22, 2008 8:52 am    Post subject: Re: Peoblem with .htaccess

I did it, but still the problem persists... Can u give me the file of viewtopic.php for advanced seo.

Thankyou.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

Peoblem with .htaccessPosted: Tue Apr 22, 2008 9:03 am    Post subject: Re: Peoblem with .htaccess

narenxp wrote:
Can u give me the file of viewtopic.php for advanced seo.


install wrote:
________________________________________
>>>> INSTALLATION INSTRUCTION <<<<<
________________________________________

You will find the premodded phpBB 3.0.1 files in contrib/phpBB_3.0.1_modified_files/root/,
you can safely overwrite the phpBB 3.0.1 files with these and skip the file editing part of this install
if you did not modify these before you install this mod.
Additional language files modified by this mod are to be found in
contrib/phpBB_3.0.1_modified_files/translations/.

A phpBB 3.0.1 => advanced mod rewrite 0.4.2 diff file is as well available in the
contrib/ directory of this release.


Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: