By Success on
How to install Drupal into a subdirectory but show url that exclude the directory name?
For example:
Drupal installed into /cms/ directory.
It will show a node url as http://www.domain.com/cms/node/1
How to make the url format as http://www.domain.com/node/1 ?
Is it possible and advisable?
I prefer to install Drupal into a subdirectory for easier and neater maintainance.
Comments
you can create a virtual
you can create a virtual host (if using apache) but its name will be different then www.domain.com. might be like cms.domain.com or brandnewdomain.com
edit httpd.conf file
find 'DocumentRoot' in httpd.conf file,
and change the default root direcory that already written there,
to your drupal installation directory -
for example -
i have xampp installation on linux server,
so i changed -
DocumentRoot "/opt/lampp/htdocs"
to -
DocumentRoot "/opt/lampp/htdocs/drupal"
Good Luck!
~:)
I will have other softwares
I will have other softwares like vbulletin.
Will changing httpd.conf file affect the installation and url format of my other software?
yes, it will. at the moment
yes, it will.
at the moment document root points to directory where files for domain.com are stored. if you change it then this content could not be reached via domain.com
Is there a way to install
Is there a way to install Drupal in a subdirectory but run it like it's installed in root?
I came across some softwares with this option and it's very useful.
You can put in the Document
You can put in the Document root change suggested here and make soft links to your other tools from inside your drupal subdirectory. That should give you the look you want.
Do most of you just install
Do most of you just install Drupal into root?
Or, you install into a directory and go thru these steps?
What did you do?
I installed drupal into a
I installed drupal into a subdirectory, and made the virtual host document root that directory. Works fine for my subsites too. I don't have other tools I am using, though, like you do.
Can you change the DocumentRoot
If you are on a shared host ?
I tried putting the DocumentRoot command in the htaccess and it says its not allowed there ?
Any suggestion on how to have example.com point to example.com/drupal
Thanks
--
Chios Greece sightseeings
------
GiorgosK
Web Development