I want to redirect a http://site.com/ to http://site.com/url What is the simplest way to do this? I tried editing httpd.conf and to the redirect command. It didn't worked Also I tried creating a file on sites-enabled with rewrite commands. also didn't worked out. sample config on sites-enabled: RewriteEngine On RewriteRule /.* http://site.com/url [R]
feedback
|
|
This is bad practice, and search engines like Google will give you a lower score for not serving content on the base url if its linked to, however... Your redirects are recursive in both situations, you need to make it so that it wont redirect once its at the correct url, e.g.
I think in the case of your redirect, you shouldn't need to redirect everything to that url, just the root url.
| |||
|
feedback
|