WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Search Engines > Other Engines/Directories
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Other Engines/Directories Got a comment about directories or some other engine? This is the place. There is a subforum dedicated to directories.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-29-2006, 06:31 AM
WebProWorld New Member
 

Join Date: Oct 2005
Posts: 23
ashishdabas RepRank 0
Default 301 redirect problem?

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
Reply With Quote
  #2 (permalink)  
Old 05-29-2006, 08:57 PM
Webnauts's Avatar
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Worldwide
Posts: 7,399
Webnauts RepRank 3Webnauts RepRank 3
Default Re: 301 redirect problem?

Quote:
Originally Posted by ashishdabas
Will this redirection help the site's PR to increase from PR 2 to PR 3?
Yes all your backlinks will be counted in one location.
You will see the PR change in the next google PR export.

Quote:
Originally Posted by ashishdabas
Pls help me as I am still learning the SEO working.
No problem! That is why we are all here. To help each other. :)

Oh and by the way. Welcome at WPW! ;)
Reply With Quote
  #3 (permalink)  
Old 05-30-2006, 02:28 AM
WebProWorld New Member
 

Join Date: Oct 2005
Posts: 23
ashishdabas RepRank 0
Default RE: 301 redirect problem? Contd...

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
Reply With Quote
  #4 (permalink)  
Old 03-07-2008, 02:43 AM
WebProWorld New Member
 

Join Date: Mar 2008
Posts: 3
digitalpimp RepRank 0
Default Re: 301 redirect problem?

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]
I used the above code in my .htaccess and it worked fine for that purpose untill I tried to access certain pages that have a string added on to index.php such as
Code:
index.php?app=comment-box-gen
These pages are now inaccessible.

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 02:58 AM.
Reply With Quote
  #5 (permalink)  
Old 03-07-2008, 02:58 AM
WebProWorld New Member
 

Join Date: Mar 2008
Posts: 3
digitalpimp RepRank 0
Default Re: 301 redirect problem?

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]
I used the above code in my .htaccess and it worked fine for that purpose untill I tried to access certain pages that have a string added on to index.php such as
Code:
index.php?app=comment-box-gen
These pages are now inaccessible.

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:01 AM.
Reply With Quote
  #6 (permalink)  
Old 03-07-2008, 06:08 AM
Alan-Hart's Avatar
WebProWorld Member
 

Join Date: Jun 2007
Location: Swindon
Posts: 59
Alan-Hart RepRank 0
Default Re: 301 redirect problem?

why would you want to do this?

index.php is the homepage! surely this would be creating an infinite loop

myspacelayoutspimp.com/ is myspacelayoutspimp.com/index.php so you are trying to redirect a page to itself!

infinite loop =

myspacelayoutspimp.com/index.php -> redirects to -> myspacelayoutspimp.com/
myspacelayoutspimp.com/ -> redirects to -> myspacelayoutspimp.com/index.php
myspacelayoutspimp.com/index.php -> redirects to -> myspacelayoutspimp.com/
myspacelayoutspimp.com/ -> redirects to -> myspacelayoutspimp.com/index.php
myspacelayoutspimp.com/index.php -> redirects to -> myspacelayoutspimp.com/ etc etc

just change the HOME link on your pages to <a href="/">HOME</a> instead of <a href="/index.php">HOME</a>

Last edited by Alan-Hart : 03-07-2008 at 06:10 AM.
Reply With Quote
  #7 (permalink)  
Old 03-08-2008, 06:45 PM
WebProWorld New Member
 

Join Date: Mar 2008
Posts: 3
digitalpimp RepRank 0
Default Re: 301 redirect problem?

I'm under the impression that it may be duplicate content issues.
Reply With Quote
  #8 (permalink)  
Old 05-07-2008, 07:19 PM
WebProWorld New Member
 

Join Date: May 2008
Posts: 12
djarotstudio RepRank 0
Default Re: 301 redirect problem?

Quote:
just change the HOME link on your pages to <a href="/">HOME</a> instead of <a href="/index.php">HOME</a>
Agreed. This one is one simple solution. just change all your home page link into a top directory as define above.
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.
Reply With Quote
  #9 (permalink)  
Old 05-08-2008, 09:50 AM
wige's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,782
wige RepRank 4wige RepRank 4wige RepRank 4wige RepRank 4
Default Re: 301 redirect problem?

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]
A few notes:
  • I added a $ to signify the end of the request string to the first conditional. This will prevent the first rule from being processed if there is a query string.
  • I added a slash to the beginning of the second rule. This should allow the rule to work with the root index as well as subfolders. You might need to test this to make sure it doesn't add an extra slash.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
Reply

  WebProWorld > Search Engines > Other Engines/Directories
Tags: , ,



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

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


Search Engine Optimization by vBSEO 3.2.0