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

3 replies
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.
#add php #affect #append php #php #php variable #remove #seo #url
  • Profile picture of the author Abledragon
    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.
    Signature
    WealthyDragon - Earning My Living Online
    {{ DiscussionBoard.errors[4133578].message }}
    • Profile picture of the author BAcheson
      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/
      {{ DiscussionBoard.errors[4163896].message }}
  • Profile picture of the author AdWorkMedia
    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
    Signature


    AdWork Media » Global Affiliate Network & Content Locking Solutions

    Custom Platform, Flexible Lockers, Offers For Every Country
    {{ DiscussionBoard.errors[4166408].message }}

Trending Topics