Is there any difference?

  • 1
  • Question
  • Updated 9 years ago
  • Answered
Is there any problem with not including the .php with are internal site links?
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes

Posted 9 years ago

  • 1
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
no, it still works either way :)
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
I know that alex, i was talking about maybe a more technical reason for adding the .php ?
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
ohh, i miss understood your question ;)
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
no you answered correctly. Just hopeing for a more tech answer from staff.
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hi Lee,

I have spoken with an engineer about this.

Here is the scoop with the .php at the end of your links: If your site has a blog page then in reality you would be able to link to your pages without including the .php at the end. This is because the blog urls are built to not use this, and the structure of this is site wide. So basically the ability to leave the .php off the end of page names is a side effect of how something was implemented.

However, it is best to avoid this and to continue to link to your pages including the .php at the end in case things change in the future and for SEO purposes as the internal links of your site will use the .php format, and others will generally link to your site using the .php format as well.

I hope this helps!

Emmy
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
thanks Emmy, i just realsied i left it off all my nav bar links. Theres 300 pages - what would you reccommend - going through and changing all the links (thats 1800 links) or just leaving it.

Please say leave it :)

Lee.
Photo of UK Duke

UK Duke, Champion

  • 3321 Posts
  • 213 Reply Likes
i just remembered i have 2 on each page 3600 links - im going to leave it - know better next time.
Photo of Alex

Alex

  • 3448 Posts
  • 39 Reply Likes
WOW lee, your site is huge! i dont even have 1 hundred pages (yet)
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Wow Lee... 3,600 links, that is huge!
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hi Lee,
Sorry, I didn't see your question there. I would say you are fine to leave it at this point, unless you are dying to change 1,800 links. If this changes in the future we can bridge this. For the SEO issue, it is best to have all of your urls the same, but you have to weigh the time it will take you to change them and the impact on SEO.