Jump to content
Sign in to follow this  
bozonono1

404 Error page fatal call if page extension is .aspx

Recommended Posts

bozonono1

Lets say I had a website that used to be in asp.net before I changed to Wordpress and I have lots of pages that are still ranked high in a google and the old link (from search results) is what users are seeing in google. My website is www.sacm.us.com Google search produces search results as an example: www.sacm.us.com/pagename.aspx I won't get a 404 page, instead I'll get: Fatal error: Call to undefined function get_header() in C:inetpubwwwrootwp-contentthemeswhitehousepro404.php on line 4 .

Share this post


Link to post
Share on other sites
Simon

try this in `.htaccess` `RewriteRule (.*).aspx$ /$1.php`

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×