A client of mine had me redesign his old asp.net website and I have developed it using WordPress. Same domain name. It is finished and live.
During this transition, I had to re-create nearly 250 landing pages and name them using the same url structure that they were named previously, primarily for SEO purposes and the fact that these pages and links are numerous places on the web.
Although, I suspected this would require a RewriteRule in the .htaccess file, this hasn't been a seamless transition for us at all.
I need to have to redirect: http://website.com/pages/about-us.aspx to http://website.com/pages/about-us/
Currently, my .htaccess file includes the following:
AddHandler php-stable .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{REQUEST_FILENAME}\.aspx -f
RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
RewriteRule ^/?(.*)$ mysite.com/$1 [R=301,L]
</IfModule>
# END WordPress
This is having no affect and I still get a 404 error when going to these .aspx pages.
Any help would be greatly appreciated.
Thanks!