redirect subdomain
-
I believe you will have to do that via htaccess mod rewrite, im not a pro on htaccess so u may have to google it. i did find this Generic htaccess redirect www to non-www 0 -
I've been searching on google I am unable to fix the problem myself, so I have been here "sorry for language" 0 -
did you look at that link, it shows the code for the htaccess file 0 -
Let's assume your subdomain is chicken and your domain is nuggets RewriteEngine On RewriteCond %{HTTP_HOST} ^www.chicken.nuggets.com$ [NC] RewriteRule ^(.*)$ http\:\/\/chicken.nuggets.com%{REQUEST_URI} [L, R=301] That should redirect all your traffic permanently with a 301 to whatever page was requested on www to non-www Cheers, Jason 0 -
Let's assume your subdomain is chicken and your domain is nuggets RewriteEngine On RewriteCond %{HTTP_HOST} ^www.chicken.nuggets.com$ [NC] RewriteRule ^(.*)$ http\:\/\/chicken.nuggets.com%{REQUEST_URI} [L, R=301] That should redirect all your traffic permanently with a 301 to whatever page was requested on www to non-www Cheers, Jason
Hi, The steps you've done By doing this, I encountered an error when I go to visit "domain.ir" Error: Internal Server Error (sorry for language) Please find more tips0 -
Hello, Could you let us know the output to /usr/local/apache/logs/error_log when you receive that error message in your browser? Thank you. 0
Please sign in to leave a comment.
Comments
6 comments