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  
 
   
Redirection : force index.php in URL
Goto page 1, 2  Next
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
::  
Author Message
JanoF



Joined: 30 May 2006
Posts: 43

Redirection : force index.php in URLPosted: Tue Jul 18, 2006 8:42 am    Post subject: Redirection : force index.php in URL

Greet,
what mod_rewrite it is necessary then that oneself near taken http://www.example.tld redirection on http://www.example.tld/index.php ?
Have this here too you, http://phpbb-seo.com ---> http://www.phpbb-seo.com/index.php
How then? thx

_________________
www.pcforum.sk | www.pcforum.cz | jan.fecik.sk
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

Redirection : force index.php in URLPosted: Tue Jul 18, 2006 9:03 am    Post subject: Re: Redirection : force index.php in URL

hello janof Wink

Yes, this rewriteruel is the easy way to get rid of the index.php duplicate.

This will off course be part of the Zero dupe, but here is the trick :

Code:
RewriteRule ^phpbb/$ /phpbb/index.php [QSA,L,R=301]


Tu put right after the www prefix rewriterule or just before the forum protection rule in case you don't use the www one.


Then under certain circumstances, you may have to use this one instead :

Code:
RewriteRule ^phpbb/$ http://www.example.com/phpbb/index.php [QSA,L,R=301]


Just if you have a default domain set on the server for this Vhost and is different from the one used for phpBB (this happen Wink )

Of course, make sure to change example.com and phpbb/ with the relevant info 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
JanoF



Joined: 30 May 2006
Posts: 43

Redirection : force index.php in URLPosted: Tue Jul 18, 2006 9:20 am    Post subject: Re: Redirection : force index.php in URL

thx, works.... Smile

_________________
www.pcforum.sk | www.pcforum.cz | jan.fecik.sk
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

Redirection : force index.php in URLPosted: Tue Jul 18, 2006 9:33 am    Post subject: Re: Redirection : force index.php in URL

you're welcome Very Happy

_________________
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
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Redirection : force index.php in URLPosted: Sat Sep 09, 2006 7:33 am    Post subject: Re: Redirection : force index.php in URL

hello

i tried this trick but it doesnt work for me

my forum is installed in -http://forum.persia-cms.com

i have this part of rewrite rules in my forum .htaccess file

Code:
Options +FollowSymlinks

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} !^forum\.persia-cms\.com$ [NC]
RewriteRule ^(.*) http://forum.persia-cms.com/$1 [QSA,L,R=301]
RewriteRule ^forum.persia-cms.com/$ forum.persia-cms.com/index.php [QSA,L,R=301]


but this code doesn't work

_________________
چهار گوش - طراحی وب - مجله طراحی وب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

Redirection : force index.php in URLPosted: Sat Sep 09, 2006 3:36 pm    Post subject: Re: Redirection : force index.php in URL

I think you need to try :
Code:

Options +FollowSymlinks

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} !^forum\.persia-cms\.com$ [NC]
RewriteRule ^(.*) http://forum.persia-cms.com/$1 [QSA,L,R=301]
RewriteRule ^$ /index.php [QSA,L,R=301]


instead, and eventually :

Code:

Options +FollowSymlinks

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} !^forum\.persia-cms\.com$ [NC]
RewriteRule ^(.*) http://forum.persia-cms.com/$1 [QSA,L,R=301]
RewriteRule ^$ http://forum.persia-cms.com/index.php [QSA,L,R=301]


if not enough.

++

_________________
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
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Redirection : force index.php in URLPosted: Sun Sep 10, 2006 4:41 am    Post subject: Re: Redirection : force index.php in URL

thanks

the first one works Very Happy

_________________
چهار گوش - طراحی وب - مجله طراحی وب
Back to top
Visit poster's website
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Redirection : force index.php in URLPosted: Sun Sep 10, 2006 4:42 am    Post subject: Re: Redirection : force index.php in URL

thanks

the first one worked for me Very Happy

Code:
RewriteRule ^$ /index.php [QSA,L,R=301]

_________________
چهار گوش - طراحی وب - مجله طراحی وب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

Redirection : force index.php in URLPosted: Sun Sep 10, 2006 10:33 am    Post subject: Re: Redirection : force index.php in URL

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
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Redirection : force index.php in URLPosted: Fri Oct 27, 2006 1:19 pm    Post subject: Re: Redirection : force index.php in URL

excuse me

can i ask how can i remove index.php forum first page url ? Wink

_________________
چهار گوش - طراحی وب - مجله طراحی وب
Back to top
Visit poster's website
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 512
Location: Michigan

Redirection : force index.php in URLPosted: Fri Oct 27, 2006 4:51 pm    Post subject: Re: Redirection : force index.php in URL

Interesting. Smile


Last edited by Peter77 on Sat Oct 28, 2006 6:29 pm; edited 2 times in total
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

Redirection : force index.php in URLPosted: Fri Oct 27, 2006 5:41 pm    Post subject: Re: Redirection : force index.php in URL

I'll do this in the mod rewrite update, because you as well need to change the way links are outputted on your forum.

It's no big deal, could be a good occasion to start a new thread if you do not want to wait Rolling Eyes

++

_________________
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
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Redirection : force index.php in URLPosted: Sat Oct 28, 2006 1:55 pm    Post subject: how can i remove index.php form first page URL ?

hi

i ask this questiuon in this topic and you said to me to make a new topic for it

how can i remove index.php form first page URL ?

thanks Smile

_________________
چهار گوش - طراحی وب - مجله طراحی وب
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14403

Redirection : force index.php in URLPosted: Sun Oct 29, 2006 3:05 pm    Post subject: Re: Redirection : force index.php in URL

Well, this was because this topic is dedicated to forcing the index.php in URL, so I though it could be a good thing to lunch a new one to talk about doing the opposite .

++

_________________
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
AmirAbbas
phpBB SEO Team
phpBB SEO Team


Joined: 11 May 2006
Posts: 529
Location: IRAN

Redirection : force index.php in URLPosted: Sun Oct 29, 2006 3:14 pm    Post subject: Re: Redirection : force index.php in URL

OH

excuse me
i thought that i made a new post
unfortunately i wanted to make a new post but i clicked on reply button

i will made a new topic Embarassed

_________________
چهار گوش - طراحی وب - مجله طراحی وب
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
Page 1 of 2 Goto page 1, 2  Next

Navigation Similar Topics

Jump to: