I am using the front-page module which shows different default front pages to anonymous vs auth users.

The path in the settings for that module forces me to use mysite.com/drupal

I need just to have the front page set to mysite.com/.

Where or how can I change the root level path that the front page module will operate on?

Comments

bobwaycott’s picture

If you have the FrontPage module enabled, do this:

Admin>>by Module>>Front Page Settings

Everything should be collapsed by default there. What you should see, however, is Default front page

Upon installation, it probably says 'node' there. Change it to 'front_page' (without the single quotes).

You'll see expandable regions for authenticated and unauthenticated users. This is where you'll add you front page code.

Drupal does the rest.

However:

If what you are asking is how to have your Drupal installation show up at www.example.com instead of www.example.com/drupal (strictly speaking of the address displayed and typed to access your Drupal site) that is different. Basically, it has everything to do with your initial install and nothing to do with the front-page module.

Are you operating your own server? If so, you can setup virtual hosting, then install Drupal into the default public_html folder, without a subdirectory. Setup proper virtual hosting (i.e., your vhosts on Apache) and DNS translation, and www.example.com will bring you to Drupal. Otherwise, perhaps you need to change the default path for your site account (add /drupal to the end of public_html: /dir/to/site/public_html/drupal)

In short, you have that /drupal on the end of the domain because it is installed in a subdirectory of the default public_html folder.

psr’s picture

Thanks for your reply but neither of these are the question,

I've been able to get my site to display without the /drupal in the url path, but now the front page module settings will only let me put front pages on /drupal containing paths.

I see the place to change 'node' to 'front_page', but this is exactly where the problem is: at the bottom of the settings page, just before the text box where you put the 'node' or 'front_page', hard coded is http://www.mysite.com/drupal **text box starts here**

I need to figure out how to get the front page module settings page to remove the /drupal from the lowest level url path it acts upon, because in its current state, I can't get a front-page-modules' front pages displayed on mysite.com/, only on mysite/drupal.com. I tried using the 'reset to defaults' button but it made no difference.

Where does the front_page module obtain the url that it uses at the bottom of the settings page before the text box where 'front_page' is entered?

bobwaycott’s picture

The front_page module/directive is going to read directly from the baseurl that Drupal reads from. This is automatically set at installation.

My server, for example, hosts three Drupal sites. They are all installed into the site root:

/path/to/domain1.com/public_html/

/path/to/domain2.com/public_html/

/path/to/domain3.com/public_html/

If, however, I had installed Drupal in a subdirectory 'drupal,' the physical path on my server would be

/path/to/domain1.com/public_html/drupal/

front_page and every other module is going to read the directory structure from where it resides.

If it shows www.yourdomain.com/drupal . . . it is a product of your installation--unless you have moved the files, at which point, you need to make Drupal aware of that. Look up $baseurl