: How can I set a 410 redirect in htaccess I recently upgraded a website from aspx to a drupal site. I never 310'd 301'd the old pages which are gone. The old aspx pages are still showing
I recently upgraded a website from aspx to a drupal site. I never 310'd 301'd the old pages which are gone.
The old aspx pages are still showing up as 404 error in google webmaster. I have created a new site map for the drupal site when it was launched 2 months ago, and then again recently.
Can I create a 410 redirect in the htaccess for all aspx pages like a wildcard? If so how can I do this?
thanks in advance
More posts by @Lee4591628
1 Comments
Sorted by latest first Latest Oldest Best
You cannot set 410 Gone as redirect, which indicates that the web server has no forwarding address for the URL and the browsers would treat it as error. You should use 301 Move Permanently instead, using below line in .htaccess would redirect like wildcat to newsite.com
Redirect 301 / newsite.com/
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.