.htaccess - htaccess redirect entire domain to another, but make a custom redirection for specific url -


i need make redirection domain.

basically need explained below.

redirect entire domain.net domain.com, leave custom redirect, this:

domain.net/specific_url.html domain.com/my_new_url.html 

you can try one.

rewritecond %{http_host} ^(www\.)?example\.net rewriterule ^(.*)$ http://example.com [r=301,l] rewritecond %{http_host} ^(www\.)?example\.net rewriterule ^specific_url/? http://example.com/new_url [r=301,l] 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -