Skip to main content

Redirect with every thing after the domain name

Comments

2 comments

  • fcbinfo
    Have found the solution, with default redirect of cPanel don't work, but with this configuration now I have it working. Look. Original from cpanel redirect: (Not working) RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.net$ [OR] RewriteCond %{HTTP_HOST} ^www\.domain\.net$ RewriteRule ^/?$ "http\:\/\/www\.domain\.com\/$1" [R=301,L]
    Working code, with redirect all the links after the domain RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.net$ [OR] RewriteCond %{HTTP_HOST} ^www\.domain\.net$ RewriteRule (.*)$ "http\:\/\/www\.domain\.com\/$1" [R=301,L]
    Difference only on the ^/?$ to (.*)$
    0
  • cPanelMichael
    Hello :) I am happy to see you were able to find a solution. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.