Reputation: 11
Previously our website was in aspx version and now we have revamped to php version. We want to redirect
to
example.com/
RewriteRule ^index\.aspx\/?(.*)$ "http\:\/\/www\.example\.com\/$1" [R=301,L]
We have used the above code but it's not properly redirecting. Its getting redirected to
Upvotes: 1
Views: 22
Reputation: 18671
Use:
RewriteRule ^index\.aspx/?(.*)$ http://www.example.com/$1? [R=301,L]
With ?
at the end.
Upvotes: 1