.htaccess tutorial

htaccess Elite


Newbie. Subdir requires trailing slash if subdomain isnt www

Ask your mod_rewrite and Redirection questions here, and get answers!

Newbie. Subdir requires trailing slash if subdomain isnt www

New postby wx4tcl » 11 Jul 2008 19:31

I have searched and searched for 8 hours this morning, editing and re-editing my .htaccess file that's on the root of the server... which, would essentially be http://www.gotshunt.com/.htaccess if a user could see it. And so far, nothing has worked... here's what's going on, in DETAIL, so everything is clear.

I've got blogs I'm trying to set up for upcoming new users of my site. They are all in the same one subdirectory off the root directory, and each user has a different subdomain that they enter to access their blog.

Here's what I need:
Code: Select all
http://www.gotshunt.com/journals --> forwards to http://www.gotshunt.com/journals/ -- Works fine, but that doesn't help me one bit.
http://my.gotshunt.com/journals --> must forward to http://my.gotshunt.com/journals/ -- FAILS!!!
http://otheruser.my.gotshunt.com/journals --> must forward to http://otheruser.my.gotshunt.com/journals/ -- FAILS!!!


Here's what I have:
Code: Select all
http://www.gotshunt.com/journals --> http://www.gotshunt.com/jounals/
http://my.gotshunt.com/journals --> blank page
http://chapelhill.my.gotshunt.com/journals --> blank page
*.gotshunt.com is listed as an "A" Record, pointing to the IP address of my GoDaddy shared server.

---
GoDaddy could not help me, and said it was a scripting issue.

Can I get some help please? Thank you so much.

Thanks
Phil
wx4tcl
 
Posts: 1
Joined: 11 Jul 2008 18:54

Return to Redirect or Rewrite Questions