Linda
Linda

Reputation: 2247

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?

Upvotes: 1

Views: 8838

Answers (5)

bbop
bbop

Reputation: 91

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.

Upvotes: 0

Naidim
Naidim

Reputation: 7166

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)

Upvotes: 0

corbacho
corbacho

Reputation: 9052

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

Upvotes: 7

Kevin
Kevin

Reputation: 13226

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.

Upvotes: 4

Ibrahim
Ibrahim

Reputation: 1261

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

Upvotes: 0

Related Questions