Help - Search - Members - Calendar
Full Version: .htaccess Question
Invision Power Services > Community Forums > Community Web Design and Coding
Michael Boutros
Hello,

I think this is related to .htaccess, but I honestly have no clue. When I visit my clients site at somesite.com it works fine, but when I visit it at www.somesite.com it doesn't work. Does anyone know what's going on?

Thanks,
Michael Boutros
Brendon Koz
I think this has to deal with DNS actually. If the client has cPanel, simply create a subdomain of 'www' and point the created directory to the world-viewable web folder.

...if you have direct access to the server, you can make the 'www' directory first as a link rather than an actual directory-file...I'm not too sure how to do the auto-forwarding of a directory to another using FTP/cPanel. I think you could probably redirect using a .htaccess file though... original.gif BACK TO SQUARE ONE!

BTW, did those REGEX's work?
Michael Boutros
malikyte: About the regexes, I only tried one of them so far and it worked like a charm, thanks original.gif Look out for an email from me in a few days.

The www directory already forwards to the public_html. When I visit www.somesite.com, it has the cPanel paging saying that no site is configured at this adress. Any ideas?
Brendon Koz
Glad the RegEx you did try worked. It's difficult to test/debug possible faults without the true source...that and I never actually made my own testing app. original.gif

As far as ideas, I have none off the top of my head and although the server books are only about 1.5 feet from my right arm, I don't have time right now to look through them. If possible, I'd send in a support ticket to the hosts.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.