1

I have the Views module installed on my site, and have created a Views page and set it as the home page. The url is /front.

The home page works via the web root (it's set in 'Default front page' of configuration -> site information), but it is also accessible via /front. Is there a way to prevent this?

It shouldn't link from anywhere, and I've added it to the robots.txt file just in case, but I would prefer a cleaner solution.

3

It's normal Drupal behavior to have front page accessible by it's original path.

What I would recommend in the case is installing the Global Redirect module and configuring it to 301 redirect from /front to /.

  • Global redirect module is good for this however it requires no configuration to do what the OP needs. Just enable the module and you're good to go. – rooby Nov 11 '14 at 14:17
  • Also, with this solution there is no need to add the front page to robots.txt – rooby Nov 11 '14 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy