|
#1
|
|||
|
|||
|
My primary domain is elliptics.com. For now, I want URLs to http://www.elliptics.com and http://elliptics.com to get automatically sent to my Drupal instance at http://www.elliptics.com/drupal.
So, I modified the root level .htaccess file as follows: RewriteEngine on RewriteCond %{HTTP_HOST} ^mail(.*)$ [NC] RewriteRule ^(.*)$ %{REQUEST_URI}/webmail [R=301,L] RewriteCond %{HTTP_HOST} ^elliptics.com$ [OR] RewriteCond %{HTTP_HOST} ^www.elliptics.com$ RewriteRule ^(.*)$ http://www.elliptics.com/drupal [R=301,L] That works as far as the root level elliptics.com URLs go, but some other URLs that should not get sent to Drupal are getting sent there. For example, while http://elliptics.com/elgg correctly goes to the elgg instance, http://elliptics.com/gallery and http://elliptics.com/moodle don't go to those folders and instead get sent to the drupal folder. Anybody have any idea why? Thanks! doug |
|
#2
|
|||
|
|||
|
I guess nobody else has run into this kind of problem?
doug |
|
#3
|
|||
|
|||
|
Quote:
hmmm why dont you just move drupal to your main directory?? did you install from fantastico?? do a backup of the db and do a reinstall than restore backup in fantastico instead of filling the info where it ask you for the file location just leave empty and it will install in public_html
Last edited by cordoba11; 08-23-2008 at 10:23 PM. |
|
#4
|
|||
|
|||
|
Thanks for your reply.
I did install from cPanel. I have lots of other things in the main directory too, not to mention various other domain folders. So I wanted to keep this in the drupal folder. It would be way way way too cluttered and confusing with everything if I put all the drupal contents directly at the top level. That rewrite set should work, right? Or do I have a mistake in syntax? Thanks, doug |
|
#5
|
|||
|
|||
|
You could just setup a redirect?
|
|
#6
|
|||
|
|||
|
Thanks for your note. I actually got the rewrite rule to work. I don't know why my original version, above, didn't work, but this one does:
RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^/?$ "http\:\/\/www\.elliptics\.com\/drupal" [R=302,L] RewriteCond %{HTTP_HOST} ^www\.\elliptics\.com$ RewriteRule ^/?$ "http\:\/\/www\.elliptics\.com\/drupal" [R=302,L] doug |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mod rewrite issue | mr_bill | Pre-Sales Questions | 5 | 05-12-2008 07:07 AM |
| .htaccess issue | polarisdigital | Shared Hosting Support | 10 | 03-21-2008 08:10 AM |
| rewrite / .htaccess problem | gobezu | Shared Hosting Support | 1 | 03-18-2007 12:24 PM |
| .htaccess and mod rewrite | texanweb | Shared Hosting Support | 10 | 04-24-2006 04:43 PM |
All times are GMT -5. The time now is 09:27 AM.










