|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Other Engines/Directories Got a comment about directories or some other engine? This is the place. There is a subforum dedicated to directories. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello everybody,
I have just started SEO working on a website www.my-medicare.com which has PR 2. Can I make a 301 redirect from http://www.my-medicare.com/index.php to http://www.my-medicare.com on 'home' link on homepage and all other inner pages. The PR of ../index.php is 3 while of www.my-medicare.com is 2. Will this redirection help the site's PR to increase from PR 2 to PR 3? Can this redirection create any problem as the page to be opened is index.php, whether you write www.my-medicare.com or www.my-medicare.com/index.php Or I just simply change the link on 'home' button from http://www.my-medicare.com/index.php to http://www.my-medicare.com and it will work. What will be the right thing to do here? Pls help me as I am still learning the SEO working. Thanks Ashi |
|
||||
|
Quote:
You will see the PR change in the next google PR export. Quote:
Oh and by the way. Welcome at WPW! ;)
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO |
|
|||
|
Thanks for your reply sir.
Earlier I asked the same question (about 301 redirection) to one of my seniors in our office, and following was his reply: "The default page for http://www.my-medicare.com is index.php so if you type site name with or without index.php it will going to call index.php itself. The solution of redirection won't work because it will get a infinte loop of page calling and the page won't load." Will it get in an infinite loop of page calling? Neither I understood it nor I was agreed with him. So I had to post it here. I sent him the following codes used for redirecting? (Kindly check these codes if these will work fine or some changes are required, pls send me the changes if there is any) 301 redirect using .htaccess: ----------------------------- redirect 301 /index.php http://www.my-medicare.com (without using 'http://www' in first url) The .htaccess file would then be uploaded to the same location where we have uploaded the index page at our OLD domain that we are redirecting from. OR 301 Redirect using PHP (by simply adding this code to the page): --------------------------------------------- <? header( "HTTP/1.1 301 Moved Permanently" ); header( "Location: http://www.new-url.com/" ); ?> Waiting for your reply, Sir!!! Thanks, Ashish |
|
|||
|
I also would like to place a redirect on my site and redirect Free Myspace Profile Layouts Resource, myspace comments ,backgrounds, graphics, videos, profile games, premade and custom layouts - MySpace Layouts Pimp to Free Myspace Profile Layouts Resource, myspace comments ,backgrounds, graphics, videos, profile games, premade and custom layouts - MySpace Layouts Pimp
Code:
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ http://www.myspacelayoutspimp.com/$1 [R=301,L]
Code:
index.php?app=comment-box-gen Is there a way to redirect only the index.php page without screwing with the others. Ive got another quick question if both the index.php and the home page has for example a PR 3 will it increase next time around the home page page rank if I redirect the index.php to the homepage? Last edited by digitalpimp; 03-07-2008 at 03:58 AM. |
|
|||
|
Sorry about the double post I was trying to fix the urls so they wouldnt show up like that I dont understand why since I only put in the urls not my meta description.
I also would like to place a redirect on my site and redirect myspacelayoutspimp.com/index.php to myspacelayoutspimp.com/ Code:
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ http://www.myspacelayoutspimp.com/$1 [R=301,L]
Code:
index.php?app=comment-box-gen Is there a way to redirect only the index.php page without screwing with the others. Ive got another quick question if both the index.php and the home page has for example a PR 3 will it increase next time around the home page page rank if I redirect the index.php to the homepage? Last edited by digitalpimp; 03-07-2008 at 04:01 AM. |
|
|||
|
Quote:
The result will be: - your site won't be indexed as /index.php, so the rank won't be in this /index.php url for the next pr update. - your next rank will be in / cause nobody will type /index.php when they need to open ur site. too hassle. unless they've bookmarked yours. the reason why google indexed your /index.php, and pr3ed it, coz you gave this /index.php to google to crawl. |
|
||||
|
ashishdabas, I don't think your senior understood the situation you were describing. When I visit your site, I can view the same content at both the / and /index.php variations. This is duplicate content caused by canonicalization, which is where the server uses the same file to respond to requests for different URLs. In your case, this would not cause an infinite loop, since there is no pre-existing redirection in the opposite way.
digitalpimp, you would need to add a second parameter to compensate for query strings. Code:
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^.*/index\.php$
RewriteRule ^(.*)index.php$ http://www.myspacelayoutspimp.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index\.php?
RewriteRule ^/(.*)index.php(.*)$ http://www.myspacelayoutspimp.com/$1?$2 [R=301,L]
__________________
The best way to learn anything, is to question everything. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |