Redirection for seo purpose

Hello every one i have a website like www.example.com and i want to add redirection to all the pages Contain .html in the last. please suggest me how to do that.

But all the URL’s are changed now
for example

old url :- http://example.com/about-teastall.html
New URL:- http://example.com/about.php

The example you gave is not just .html to .php. There is also the -teastall part that disappears.

Can you please be more specific in what you want? Should -teastall be removed from all URLs?

No, all the urls have changed, more urls are here
http://teastallstudio.com/what-we-do/photography/products.htmlhttp://teastallstudio.com/photography.php
http://teastallstudio.com/what-we-do/videos/about-videos.html ---> http://teastallstudio.com/photography.php

In that case the easiest thing to do is to list them all in a file called .htaccess and put that in the root of your website, like so

Redirect permanent /about-teastall.html/about-teastall.html /about.php
Redirect permanent /products.html /photography.php
Redirect permanent /about-videos.html /photography.php

etc

That will tell the web server (I’m assuming it’s Apache here) to redirect visits on the first URL to be redirected to the second URL.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.