Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

Changed .html To .php - 301 Or Not?


  • Please log in to reply
3 replies to this topic

#1 lister

lister

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 423 posts

Posted 03 July 2013 - 08:16 AM

What I mean is this:

I have ALWAYS referenced pages within my site by NOT referring to the file extension -

 

So, I have done this: <a href> www-mysite-com/folder/ </ a>

 

I have NEVER done this: <a href> www-mysite-com/folder/index.html </ a>

 

I have recently changed the file extension to .php b/c I had to add some PHP - so my question is, if I have NOT referenced the file extension in my links (internal and otherwise) do I need to create 301's?

Do SE's honor that the file in the /folder/ is the index and that's that? Do you see what I mean?

Thanks



- Also, if the advice is to do a 301 for the index files that have changed to PHP - can I just place a .htaccess in each of those folders - would that work?

I can test but I just want to know if that is ok.....


Edited by lister, 03 July 2013 - 08:15 AM.


#2 Alan Perkins

Alan Perkins

    Token male admin

  • Admin
  • 1,642 posts
  • Location:UK

Posted 03 July 2013 - 08:23 AM

so my question is, if I have NOT referenced the file extension in my links (internal and otherwise) do I need to create 301's?

 

If  understand you correctly then the URL the client (be it a browser or a search robot) sees is unchanged, so you don't need a 301.



#3 lister

lister

    HR 5

  • Active Members
  • PipPipPipPipPip
  • 423 posts

Posted 03 July 2013 - 08:24 AM

OK thanks -

 

Yes I have just done two things since the original post:

 

1. I checked an indexed page on Google and clicked my link (the result) FROM Google to my site and it worked just fine.....

2. I tested a simple .htaccess in that folder that the file extension has changed and it also works....

But you reckon the fact that I can click into the page from an indexed SERP means that I'm 100% cool right?

 

Thanks


Edited by lister, 03 July 2013 - 08:25 AM.


#4 qwerty

qwerty

    HR 10

  • Moderator
  • 8,632 posts
  • Location:Somerville, MA

Posted 03 July 2013 - 09:35 AM

Unless someone else has linked to one of your pages using www-mysite-com/folder/index.html, you should be fine, and if you've never linked internally using a file name, there's no reason to think anyone else would have gone to the extra trouble of adding the file name to a URL when they linked to you.

 

I expect you get no results on a search for [site:mysite.com inurl:index.html].






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

SPAM FREE FORUM!
 
If you are just registering to spam,
don't bother. You will be wasting your
time as your spam will never see the
light of day!