Redirect any page that has an .aspx ending to a new url
I am just learning how to edit .htaccess files.
Is there a way to tell it to redirect a开发者_StackOverflowny page asking for a .aspx to go to a different url?
Example: xxxxxx.com/login.aspx redirect to: xxxxxx.net
There a lot of different pages since this was an old server move. I would love for a way to tell it to just redirect all that ask for a .aspx.
Thank you so much.
Ok, am not an Apache hacker like RSE (the Bastard Operator from Hell
),but I think this might help:
RewriteRule ^(.*)\.aspx $1.net [L]
for more guidance from the master, look at the manual here
精彩评论