- I had a website 'example.com', which was in wordpress initially but i had to move it to php.
Now my site is in php. The problem now is, i tried redirecting urls, for ex:-
http://www.example.com/about-mysite/
, to my new url using Redirect 301 in .htaccess file.Suppose my old page is /about-example/, i redirect it as,
Redirect 301 /about-mysite/ http://www.example.com/about-example.php
but it is not getting redirected.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]
Redirect 301 /about-kankaria-eye-hospital/ http://www.asianeyehospital.com/about-kankaria-eye-hospital.php
. I hope this is readable. – atul