iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-05-2006, 07:07 AM
WebProWorld New Member
 
Join Date: Oct 2005
Posts: 23
ashishdabas RepRank 0
Default PR 3 with /index.php and PR 2 without /index.php?

Hi !

I have a website www.my-medicare.com with PR 2. If you open it with index.php in the end i.e. http://www.my-medicare.com/index.php it shows PR 3
or if you click on the 'home' link on homepage or any other pages in the website.

What I want to know is,if I change the 'home' button link from http://www.my-medicare.com/index.php to http://www.my-medicare.com, will www.my-medicare.com get the advantage of increased PR from 2 to 3.

If yes, then how? Should I simply remove the indx.php from 'home' link and link it to www.my-medicare.com?

I can not do 301 redirect because it will make the pages go in an infinite loop and page will not be opened because in the end the page opened is index.php (whether you type www.my-medicare.com or type the whole url with /index.php)

Should I make changes in my robots.txt file or do a ModRewrite redirect? (but will this also make the PR to increase from PR2 to PR3?)

I want every link pointing to homepage should open the page www.my-medicare.com without /index.php.

Pls help me in sorting out this problem!

Thanks
Ashish
Reply With Quote
  #2 (permalink)  
Old 06-05-2006, 09:04 AM
cspelts's Avatar
WebProWorld Veteran
 
Join Date: Jan 2005
Location: Fallbrook, California
Posts: 542
cspelts RepRank 1
Default Re: PR 3 with /index.php and PR 2 without /index.php?

I'd change your own links on your own site to point to just the domain name, but it's not really hurting your site, so I wouldn't go too crazy. Asking everyone who links to your site to update their links may lead to some of them deleting the link instead - and that would definitely hurt your rankings!
Reply With Quote
  #3 (permalink)  
Old 06-05-2006, 10:57 AM
stymiee's Avatar
WebProWorld Veteran
 
Join Date: May 2006
Location: New Jersey
Posts: 429
stymiee RepRank 0
Default

This is basic Google 101. Use a 301 redirect to automatically forward users to one or the other. Here is the code for forwarding them to always have the www:

Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Here is the code to forward them to never have the www:

Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST}//s%{HTTPS} ^www\.(.*)//((s)on|s.*)$ [NC]
RewriteRule ^ http%3://%1%{REQUEST_URI} [L,R=301]
Here is the code to make /index.php redirect to /

Code:
redirect 301 /index.php /
This goes in an .htaccess file in your root directory.
__________________
John Conde
Brainyminds Merchant Account Services eBook Giant
Reply With Quote
  #4 (permalink)  
Old 06-07-2006, 06:08 PM
WebProWorld Pro
 
Join Date: Nov 2005
Location: hawaii
Posts: 126
frogmanandy RepRank 0
Default

I tried this piece here and it broke my whole site

Quote:
Here is the code to make /index.php redirect to /

Code:
redirect 301 /index.php /
and yes if you use redirect 301 /index.php http://www.mysite.com
you will create an infinite loop
__________________
Frogmanandy
www.bossfrog.com
If you are coming to Hawaii visit our forum
www.maui-vacation.net
www.mauihawaiiluau.com
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:20 AM.



Search Engine Optimization by vBSEO 3.3.0