.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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -