Forum Moderators: phranque
My site is used to [domain.com...] without www, but now some [domain.com...] poping up in the logs.
How to redirect or rewrite this?
Thanks!
You're probably looking for a thread like this one: [webmasterworld.com...]
In order to use that code, mod_rewrite must be configured on your server.
Jim
You are a legend!
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domain\.com
RewriteRule ^(.*) [domain.com$1...] [L,R=301]
(I left the / before the $1 off as otherwise I had [domain.com...]
Thanks, Jan
/http://domain.com/ to [domain.com...]
I don't understand your second question. The "http://" is not part of the URL, it's part of the scheme, so I don't know where/how you would get "/http://"
(?)
Jim
don't know where/how you would get "/http://"
(?)
I'm getting some wrong GETs this days from Slurp.
[webmasterworld.com...]
Yahoo did me kindly offer to check it.
But I think its coming from someones wrong URL linking to me. So it would be really cool to simply get rid of the slash before the http for such wrong requests.
Do you see any way?