htaccess
- Started
- Last post
- 11 Responses
- iamstillalive
so here is my problem.
If someone rolls to a site without typing www. before the domain name, xml no gets parsed.ie:
www.mysite.com (works)
mysite.com (no work)can I use htaccess to redirect to make sure that any url starts w/ www.
so that if someone goes to mysite.com/nt
they would get redirected to
www.mysite.com/ntThanks.
- mg330
don't have an answer but why would the lack of www do that? It's all in the same place right?
- JazX0
- iamstillalive0
mg33, i ain't sure why its happening. neither hotscripts nor google are helping out.
- iamstillalive0
plenty on htaccess redirects but nothing specific.
- mg330
It's after 5pm EST, Google is closed!
- iamstillalive0
crap i thought they were on the west coast
- Duane0
You can add this to .htaaccess and it should do the trick.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
- Duane0
The code got jacked in posting. Do a google search on RewriteEngine redirect. Sorry about that.
- iamstillalive0
testpilot, thanks chief. I will have a look.
- iamstillalive0
http://www.google.com/search?cli…
Thanks, tp.
Also, it was my actionscript which I also fixed, but now I know.
- Duane0
Awesome - glad to help.