Hi,

I am a relatively new user to Drupal but have managed to deploy/configure it for one of my production sites. My question is as follows:

I have installed drupal at this location: http://example.com/events
Over here I have created a few views (calendar, list, etc) as well as a custom content type, etc. Everything is working great for the 'events' setup.
The url for my views is http://example.com/events/list-view and http://example.com/events/node/add/event

Now I have realized that I would actually want to have my base drupal URL to actually be
http://example.com/connect/events
and all the views and cck forms to be relative to connect/events.

This is because I would like to setup an additional functionality at connect/groups.

Hence, my question is: Is there an easy way to move the base setup from example.com/events to example.com/connect/events?

I am thinking one option might be to create a folder called 'connect' in my '/var/www/html' and then move the whole 'events' folder (where drupal is currently installed) into the connect folder. But I was wondering- would this break any of the existing functionality? Can a drupal folder be moved post-installation?

Looking forward to any inputs.

Thanks,
Ronak

P.S.: In case it might help, I would be happy to share my production URL where drupal is currently installed.

Comments

hugeknot’s picture

... but I would export your database (in any case you should back it up) and then install drupal again and include all the themes and modules that you have currently. Then simply import the database to the fresh installation.

There may be an easier way, where you simply change paths in setting.php - but I am not familiar so you might want to wait for a more experienced answer.

Tony

mtsanford’s picture

http://example.com/events/node/add/event

Drupal URLs do not map directly to the file system. By the time it get's to Drupal that is actually http://example.com?q=events/node/add/event

In other words, *ALL* drupal requests go to wherever http://example.com is mapped to, and the rest of the url is just a query argument. So what you are thinking will not work.

This is because I would like to setup an additional functionality at connect/groups.

What do you mean? Non drupal stuff?

rsutaria’s picture

No, the new functionality is also going to be drupal based. connect/groups is also going to be served by drupal.

mtsanford’s picture

Actually, reading again, that should probably work fine. It would be easy enough to try it out by just copying the whole drupal folder to some other path like WWWROOT/test/subfolder and see how it goes. You might have to adjust setting in your settings.php, and/or .htaccess (RewriteBase, $base_url), but these are very well documented in the files themselves at this point.

rsutaria’s picture

I have been using drupal for just about a week- and have added a new functionality on my production website using drupal. I have to say that I have been immensely impressed with all the functionality that is available.

I wanted to change my base installation folder of drupal from 'events' to 'connect/events' and I just copied my install folder to the new location and voila- everything worked like a charm. The first time I copied it- it took about a min to load the new site (and I was sitting there keeping fingers crossed) - but once it loaded the page, everything worked just fine.

kudos to the developers!