Part of Drupal's core functionality is it's complete control over URL's, such that http://www.durpalsite.com/node exists even though the physical file directory /node does not. Unfortunately, this causes problems in certain instances.
E.g.
I want to give someone else hosting space and a subdomain on my webspace.
I give him http://subsite.mysite.com, and access to the directory http://www.mysite.com/subsite
I configure the subdomain such that http://subsite.mysite.com redirects to http://www.mysite.com/subsite
If drupal is installed on http://www.mysite.com, this will not work.
The redirection will result in an apache "Forbidden" error page, while typing in http://www.mysite.com/subsite will result in a drupal "Page Not Found" error. This is not really a problem if the subsite is running drupal, but otherwise the only way to access the website will be by typing http://www.mysite.com/subsite/index.html
Is there any way to disable this functionality, or exclude certain URLs?
The drupal's page serving commentary at http://drupal.org/node/10858 is not too much help, but I presume that it might actually be possible to achieve this my excluding certain URL's from engaging index.php?
Comments
Change htaccess
Easiest solution: do not use Clean URLs.
Or if you want to keep clean URLs, another quite easy solution is to move your site down one directory, so that the address becomes something like this: http://www.mysite.com/web. You'll find instructions on how to install in a subdirectory in the install.txt file.
If you use this solution, you will need to add a redirect rule in a htaccess file in your base directory, something like this (depending on the configuration of your system):
If you do'nt want to move youer site to a subdirectory, I suspect that you can change the htacess file that came with Drupal to point some calls to other directories.
It's got nothing to do with C
It's got nothing to do with Clean URLs... (or in any case my site performs in exactly the same way with clean url's disabled)
I might try doing the subdirectory thing, but I'm trying to avoid that if possible.
---
www.symplification.com
.htaccess
The switch in Drupal admin only affects whether clean URLs are output by Drupal. Whether or not Drupal controls URLs is done through .htaccess.
Hmm. I just realised that
Hmm.
I just realised that I didn't really need to create a redirect; cPanel (which I'm using) itself creates a file directory, and if I load files there the subdomain works as expected.
I really have no idea how it manages to do this; now even www.mysite.com/subsite works!
---
www.symplification.com
Virtual directories within we
Virtual directories within web sites are supposed to work that way. It's these new fangled database driven sites that are confusing people :)
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
A simular discussion: http://
A simular discussion: http://drupal.org/node/12514
one possible solution - even
one possible solution - even though its ugly.
http://drupal.org/node/12514#comment-19640
does anyone else have a
does anyone else have a suggestion ?
Pamphile
http://01businesses.com
This approach (physical
This approach (physical directory below Drupal) has been working fine for me for three years.
--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.
--
Drupal services
My Drupal services
Can my sites in a drupal
Can my sites in a drupal multi sites configuration, have their own subdirectories?
I am using multi sites with domain parking.
But I am facing difficulities creating subdirectories for each of them.
...
Please start a new request. This thread is over two years old.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide