By davedg629 on
I have a node that I have made the front page via site configuration - site information. The url alias for this node is "home". So if I go to www.mysite.com/home I see my front page just as if I went to www.mysite.com. Great, but I want the url alias to show up every time the front page is visited. So basically if someone goes to www.mysite.com, I want www.mysite.com/home to show up in the browser url.
I figured using my .htaccess file to create a redirect would work, but I cannot for the life of me find any simple instructions on how to perform this redirection and all of my attempts have failed. Anyone have any ideas? thanks.
Dave
Comments
=-=
sounds like it may have been better to put drupal in a subdirectory called "home" then use a $base_url in settings.php or the subdirectory rewrite in .htaccess.
alright, for simplicity's
alright, for simplicity's sake i said the url was "home", but the client actually wants it to be "www.mysite.com/home-of-premium-logos-and-identity-packages" (he thinks it will help SEO, idk). There has to be a simple redirect I can do with .htaccess, I guess I'll just keep learning more about how to do redirects with .htaccess and see if I can figure it out.
K, here is how you do it,
K, here is how you do it, place this in your .htaccess file.
RedirectMatch 301 ^/$ http://www.newsite.com/
This will redirect your homepage to the url you specify (http://www.newsite.com/). If you redirect to the node path that is being used for your front page then you will get the behavior of displaying a url path on your front page.