Mobile app version of vmapp.org
Login or Join
Lee4591628

: 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

@Lee4591628

Posted in: #Aspx #Htaccess #Redirects

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

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Lee4591628

1 Comments

Sorted by latest first Latest Oldest Best

 

@Berryessa370

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/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme