Drupal /node redirect to <front> page
I am not using the /node page on my site. When I visit the /node I get the default drupal text.
Welcome to your new Drupal website!
Please follow these 开发者_开发技巧steps to set up and start using your website:
Configure your websiteConfigure your website
I wish to send /node to my page. How would I do this?
Thre is no setting for that.
If you want to redirect to the frontpage, you will have to modify the .htaccess
file with these lines:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^node(/)?$ / [L,R=301]
</IfModule>
It will redirect node and node/ to the path / , i.e. frontpage
Go into the admin, and go to the Site Information (/admin/settings/site-information). Change the site frontpage at the bottom to a node path of your choosing. This will set a new homepage. Nothing else needed.
I think you want to set a page as front page on your Drupal site. Do the following
Create Content -> Page -> Publish Options -> select promoted to front page
An easier way for those afraid of digging into the code is to simply and easily create a URL Alias for /node to /node/1 (or whatever node your home page is)
Simply use Redirect module and set up a 301 redirect for the /node page unless you want to play with your .htaccess file which is actually a better way to solve the issue.
精彩评论