can't get mod_rewrite to work for subdomain. please help!

tacita

New member
Joined
Feb 22, 2006
Messages
1
can't get mod_rewrite to work for subdomain. PLEASE HELP!

I searched the forums and could not find an answer to my question so I am hoping someone out there can help.

I have a site catherinepedemonti.com. I have dance.catherinepedemonti.com as a subdomain. I created the subdomain through DirectAdmin.
I put a .htaccess file in the public_html folder of the parent directory of catherinepedemonti.com. i am getting the following error:
------------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] 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.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.33 Server at dance.catherinepedemonti.com Port 80
------------------------------

I have tried many different ways of writing the file. currently it is as follows:

------------------------------
Options +FollowSymLinks
RewriteEngine on


RewriteCond %{HTTP_HOST} ^(www\.)?catherinepedemonti\.com$ [NC]
RewriteRule ^dance(/?.*)$ http://dance.catherinepedemonti.com [R=301,L]

RewriteCond %{HTTP_HOST} ^dance\.catherinepedemonti\.com$ [NC]


RewriteRule ^background/? /dance/index.php [L]
RewriteRule ^photos/?([A-Za-z0-9-_]*)? /dance/index.php?pg=photos&i=$1 [L]
RewriteRule ^email/? /dance/index.php?pg=email [L]


Options +Includes

AddType text/html .html

AddOutputFilter INCLUDES .html

DirectoryIndex index.php index.html

---------------------------


Any advice would be hugely wonderfully great!

Thanks in advance for your help.

Take care!
 
Last edited:
Back
Top