Hi, I've been looking through the forums but can't seem to find a solution for this. I would really appreciate some help.
I had an html site and later converted to php, so had to rewrite the htaccess to pull in all my old links around the web to their new .php names.
I have now changed this .php site to a wordpress site. I have kept all the same page name urls, but all the links now end in / and have no extentions as is the norm with w.p sites.
Obviously now all my previous external web links don't work.
So I would now like to pull in all .php and .html links around the web so they take visitors to the equivalent new wordpress pages.
i.e pull in www.????.com/page.html and www.????.com/page.php
to www.????.com/page/
But because of what I have in the htaccess already ie. html to php...and a cloaked links mod and the code wordpress has placed in my htaccess file, I can't seem to make this work, and I don't want to screw anything else up.
I'm on apache and linux
here is my .htaccess as it stands.
RewriteEngine On
RewriteRule ^link/([/_0-9a-zA-Z-]+)$ link.php?id=$1
RewriteRule (.*)\.html$ http://www.mysite.co.uk/$1.php [R=301,NC,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Thanks