Hi Arlin
The best way to work this out, of course, would be to see the Apache server's 'error' log, which would give more pointers to what might have gone wrong. However, on most shared hosting sites (including perhaps GoDaddy) this file isn't available for viewing, so for now you could try the following steps (note that I don't know Drupal well, so these are fairly standard steps for any modern CMS running on Linux/Apache/MySql/Php [LAMP]);
1/ If possible put some of your static website files in your 'test' folder, and try browsing the static site on test.mysite.org, just to ensure it's not some issue unrelated to Drupal;
2/ Check settings in Drupal - that you've configured it to run on the subdomain but using the same test folder. Ensure that any 3rd party components 'know' about this change too ... a php or javascript file trying to 'include' or reference a file from a different domain could cause this kind of error;
3/ Are you using url redirection in Drupal (e.g. using .htaccess files)? If so, try switching off 'nice urls' (e.g. /mysection/my-new-article ) for the older 'messy urls' (e.g. /index.php?section=mysection&article=12345), so that the redirection isn't used. It could be the .htaccess file configuration messing up now that you are using a different subdomain;
4/ Clear out your browser history and cookie cache - cookies are also sensitive to location / domain changes
Anything else more deeply related to your CMS I leave up to other Drupalites... but post back once you find a resolution!
Alan
Well, I fixed the error messages by disabling clean urls.
Now, the site works fine... but clean urls cannot be enabled.
If I go to http://mysite.org/test and login, I CAN enable clean urls.
If I go to http://test.mysite.org and login, I CANNOT enable clean urls. Druapl says "Your system configuration does not currently support this feature."
Is there anything I can set to enable clean urls on my subdomain? (Keep in mind 2 things: 1.) This is a shared goddaddy account & 2.) I am VERY new to all this!)
Thanks for the help.
I use a configuration similar to what you are trying to use with shared hosting accounts hosted by AN Hosting. I just checked my .htaccess and settings.php files and didn't see anything out of the ordinary that would account for my success and your problems.
You may not have access to the Apache logs, but the Drupal logs might provide some information.
Also, while it's unrelated to your current issue your problem with images is probably caused by using fully qualified URLs (or is it URIs?) to reference your images. IMO images, and links, too, should ALWAYS be relative (assuming that they're on your site, of course) so that they always work regardless of where the site resides.
I've never used GoDaddy's technical support but they should be able to help you. You're not trying to do anything that is very exotic.
Good luck,
Curt
I called godaddy tech support and they say everything checks out ok (mod_rewrite is working properly).
I still not so sure. I have a feeling it is a server setting somewhere.
Support uploaded some files to test the mod_rewrite module. I am not sure exactly how to use it, but it does not seem to be working:
A folder was created called 'rewrite.' So now, I have /test/rewrite
A .htaccess file was uploaded intto the 'rewrite' folder.
Contents of the .htaccess file:
RewriteEngine On
RewriteRule ^link([^/]*).html$ rewrite.php?link=$1 [L]<h2 align=center>
<?
// mod_rewrite Test Page
// Copyright 2006 Webune.com
if($_GET['link']==1){echo"You are not using mod_rewrite";}
elseif($_GET['link']==2){echo"Congratulations!! You are using Apache mod_rewrite";}
else{echo"Linux Apache mod_rewrte Test Tutorial";}
?>
</h2>
<hr>
<head>
<title>How To Test mod_rewrite in Apache Linux Server</title>
</head>
<body>
<p align="center">by <a href="http://www.webune.com">Webune</a></p>
<p><a href="rewrite.php?link=1">LINK1</a> = rewrite.php?link=1</p>
<p><a href="link2.html">LINK2</a> = link2.html</p>
<p>How this works: both links are for this same page, except they both are different. link one is without the mod_rewrite and link2 is using mod_rewrite. Link1 show the php file, with with mod_rewrite we are mascarading the php file into a html file. you can use whatever type of extension you want, you can change it to .htm or .shtml etc... all you have to do is to make sure you also chang it in the .htaccess file</p>
<p><< <a href="http://www.webune.com/forums/viewtopic-p-62.html">Go back to webune forums.</a></p>
</body> So, I only have these three files in my test folder: .htaccess, index.php, and rewrite.php
.
Here are my results:
http://arcluverne.org/test/rewrite everything seems to work. Both test links work, telling me that mod_rewrite is working and clean urls should work as well (which they do).
http://test.arcluverne.org/rewrite the second link does not work, but the first one does. This tells me that the mod_rewrite IS NOT working with this subdomain (which they don't)!
Are my conclusions right?
How can I fix this?
Is the problem truly in MY configuration somewhere, or is the problem on Godaddy's end?
Thanks for all the help!
Hey Arlin - try removing (or renaming) the 'rewrite.php' file that you created, and then rename their index.php file to rewrite.php - this is what the tests expect, so you'll get a better idea of whether test 2 really works...
Explanation
---------
Basically, in their test .htaccess file, the rules say that any request for a file that is named linkX.html (where X is any character other than a /), should be redirected to the url rewrite.php?link=X (where X is the character(s) used earlier).
Anyway - their test number 2 should work if .htaccess is enabled and the php file is named 'rewrite.php'.
Alan
OK, I started from scratch and created a new subdomain to test the mod_rewrite and clean urls on.
I uploaded the above .htaccess file and rewrite.php file as outlined in the test how-to.
I still have problems on the subdomain.
Check it out:
Normal Domain (Everything works!):
http://arcluverne.org/dev/rewrite.php
Subdoman (Does not work!):
http://dev.arcluverne.org/rewrite.php
One thing that changed is I now get a 'HTTP 404 Not Found' error.
Earlier, I was getting an Internal Server Error.
I finally figured out my problem!!!! Hurray!!!
I had to edit my .htaccess file in my drupal directory to add the following line:
RewriteBase /test
Actually, this line was already in the .htaccess file, but it was commented out and I had to replace /druapl with /test, which is the subdirectory my drupal install is located in and the subdirectory my subdomain points to.
Here is the block of code with a better description right form the default Drupal .htaccess file:
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /druapl
Thanks Alan & Curt for at least steering me towards a solution.
Will have to keep this in mind for future reference.
Right now, I am using godaddy for dns registrar and hosting our website.
Our current site is just a static, manually updated site with all files and folders under the root "/" directory. index.html is right under root.
I began developing a new Drupal site, so I put the drual install in a folder on my site /test.
Now, I am thinking a better idea would be to use a subdomain.
So, I setup a subdomain of test.mysite.org and set the folder to use as /test (so all my drupal install files just stay put... nothing changes).
Now, when I go to test.mysite.org the homepage seems to load fine. Pictures are not found, but that is probably just a path issue.
BUT I get an "internal server error" whenever I try to navigate away from the front page.
Here is the error in its entirety:
****************
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.33 Server at test.mysite.org Port 80
***************
What am I doing wrong here?
Can anyone help me?
(note: I have changed all above addresses to the ficticious 'mysite' for privacy)