PDA

View Full Version : .htaccess help!



flashie
06 Apr 2011, 03:22 AM
Hi there,

Hope someone can help me with this prob....

The last two redirects are not working, only the first! Any reason why? Perhaps I have it wrong here??

I’d like http://killerdomains.com.au to -> https://killerdomains.com.au

But that aint working...

Althought if I type the www.killerdomains.com.au it works and goes to the https one I have below.

The store one also fails.... any advice???????

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^www.killerdomains.com.au [nc]
rewriterule ^(.*)$ https://killerdomains.com.au/$1 [r=301,nc]

rewritecond %{http_host} ^www.store.killerdomains.com.au [nc]
rewriterule ^(.*)$ http://store.killerdomains.com.au/$1 [r=301,nc]


rewritecond %{http_host} ^http://killerdomains.com.au [nc]
rewriterule ^(.*)$ https://killerdomains.com.au/$1 [r=301,nc]

:smash: