Click to See Complete Forum and Search --> : Need help with .htaccess


fobber
10-02-2011, 03:27 AM
Hello,

I'm about to move my domain, from cheetah.thekks.net/fobber to fobber.thekks.net
Currently my main page can be accessed by: cheetah.thekks.net/fobber/index.php, since the domain is a bit long, I want it to be changed to fobber.thekks.net/index.php

- Anyway. I thought of using .htaccess for making a redirection, so my old visitors, will still come and visit my new site.

So here is what I want:
http://cheetah.thekks.net/index.php becomes http://fobber.thekks.net/index.php
http://cheetah.thekks.net/cheetah_stuff/index.php becomes http://fobber.thekks.net/index.php
http://cheetah.thekks.net/fobber/index.php becomes http://fobber.thekks.net/index.php

http://cheetah.thekks.net/abc.php becomes http://fobber.thekks.net/abc.php
http://cheetah.thekks.net/cheetah_stuff/abc.php becomes http://fobber.thekks.net/abc.php
http://cheetah.thekks.net/fobber/abc.php becomes http://fobber.thekks.net/abc.php

http://cheetah.thekks.net/cat.php becomes http://fobber.thekks.net/cat.php
http://cheetah.thekks.net/cheetah_stuff/cat.php becomes http://fobber.thekks.net/cat.php
http://cheetah.thekks.net/fobber/cat.php becomes http://fobber.thekks.net/cat.php
And so on. I got like 50 PHP files. So I assume a .htaccess-redirection would be the best solution.

This is what I currently use, but it doesn't seem to redirect.. At all:

RewriteRule ^/cheetah_stuff/(.*)$ http\:\/\/fobber\.thekks\.net\/$1 [R=301,L]
RewriteRule ^/fobber/(.*)$ http\:\/\/fobber\.thekks\.net\/$1 [R=301,L]
RewriteRule ^/(.*)$ http\:\/\/fobber\.thekks\.net\/$1 [R=301,L]

fobber
10-05-2011, 05:58 AM
anyone?(: