Welcome Guest, Not a member yet? Register   Sign In
htaccess question: is this correct?
#3

[eluser]codex[/eluser]
[quote author="Sean Murphy" date="1211833461"]codex, yeah, that's the idea. It could be cleaned up some though.

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.scripto\.nl$
RewriteCond %{HTTP_HOST} ^([^\.]+)\.scripto\.nl$

RewriteRule ^$ http://www.google.com
[/quote]

It was basically only a sample to see if the redirect would work. My host activated wildcard DNS and presto, the code worked. Now on to the real htaccess.


Messages In This Thread
htaccess question: is this correct? - by El Forum - 05-25-2008, 01:05 PM
htaccess question: is this correct? - by El Forum - 05-26-2008, 09:24 AM
htaccess question: is this correct? - by El Forum - 05-26-2008, 09:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB