Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-09-2011, 06:15 PM   PM User | #1
michaeldean
New to the CF scene

 
Join Date: May 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
michaeldean is an unknown quantity at this point
Exclamation URGENT .htaccess help!!

I am having the BIGGEST dilema. For some reason every time i get my site to redirect from the naked domain: mysite.com to its actual www.mysite.com all my subdomain links: mysite.com/audio are broken! Is there some obvious easy fix for this? What am i doing wrong? Please help!

Here is the code i've been using:

[ RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L] ]

WHAT DO I NEED TO ADD/CHANGE TO MAKE MY SUBDOMAIN LINKS WORK??
michaeldean is offline   Reply With Quote
Reply

Bookmarks

Tags
domain, htaccess, problem, redirect, subdomain

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:21 AM.


Advertisement
Log in to turn off these ads.