| :: |
| Author |
Message |
JanoF

Joined: 30 May 2006 Posts: 43
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
Posted: Tue Jul 18, 2006 9:03 am Post subject: Re: Redirection : force index.php in URL |
|
|
hello janof
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 )
Of course, make sure to change example.com and phpbb/ with the relevant info
++ |
_________________ 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 |
|
 |
JanoF

Joined: 30 May 2006 Posts: 43
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: 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 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
Posted: 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 |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Sun Sep 10, 2006 4:41 am Post subject: Re: Redirection : force index.php in URL |
|
|
thanks
the first one works  |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Sun Sep 10, 2006 4:42 am Post subject: Re: Redirection : force index.php in URL |
|
|
thanks
the first one worked for me
| Code: | | RewriteRule ^$ /index.php [QSA,L,R=301] |
|
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: 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 ?  |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Fri Oct 27, 2006 4:51 pm Post subject: Re: Redirection : force index.php in URL |
|
|
Interesting.  |
Last edited by Peter77 on Sat Oct 28, 2006 6:29 pm; edited 2 times in total |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: 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  |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14327
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: 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  |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
|
|