If I remove .php from URL will it affect SEO?

by 3 replies
4
i recently switched my site from a static html site to a wordpress platform. the old site had .php extensions on everything. now in wordpress i cannot get that unless i use a plugin called ".PHP on PAGES". That plugin ended up giving me a "page not found" for all my URLs on the new wordpress site so i deactivated it.

The problem is that i will lose all my current search engine ranking if i leave the URLs without the .php and start fresh with this new URL structure.

how do i append the .php to all permalinks?


or



Is there any other solution.
#programming #add php #affect #append php #php #php variable #remove #seo #url
  • You should be redirecting your old pages to your new pages, not trying to mess with files extensions. More details here:

    http://www.wealthydragon.com/2010/12...-to-wordpress/

    Cheers,

    Martin.
    • [1] reply
    • You need to configure your webserver to 301 redirect anything with a php extension to a non-php extension.

      If you are using apache you would use this in your htaccess:

      RedirectMatch 301 (.*)\.php$ http://www.example.com$1/
      • [ 1 ] Thanks
  • Agreed, if you set up 301 redirects the SEO juice from your old links will be passed to your new links. Since you are making new links, include your keywords in your url structure, like:

    /keyword1-keyword2-keyword3.php

Next Topics on Trending Feed

  • 4

    i recently switched my site from a static html site to a wordpress platform. the old site had .php extensions on everything. now in wordpress i cannot get that unless i use a plugin called ".PHP on PAGES". That plugin ended up giving me a "page not found" for all my URLs on the new wordpress site so i deactivated it. The problem is that i will lose all my current search engine ranking if i leave the URLs without the .php and start fresh with this new URL structure.