.htaccess - Get link and Redirect with Htaccess -


i have website domain example.com , have file example.com/example.php how redirect file other website there have same domain name different in extension redirect example.com/example.php example.net/example.php htaccess? much!

try this:

rewriteengine on rewritebase / rewritecond %{http_host} !newdomain.com$ [nc] rewriterule ^(.*)$ http://newdomain.com/$1 [l,r=301] 

Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -