Redirect subfolder to a catagory
Posted: Wed Dec 31, 2008 8:23 pm
So I used to have a different website in a subfolder off my root. The software that it was using go hacked. (SQL injection)
So i've deleted the entire folder (and it's accompany database, and I'm changing all my passwords now).
What I'd like to do is redirect the folder to a specific catagory in my root folder..
EG http://www.mpking.com/cca
redirect to:
http://www.mpking.com/categories/13-CCA
I made a index.php with the following and placed it in the cca folder:
But i just get redirected to the root folder.
I have URL Rewriting set to use Apache errorhandling. (it was defaulted to none)
What am I missing?
So i've deleted the entire folder (and it's accompany database, and I'm changing all my passwords now).
What I'd like to do is redirect the folder to a specific catagory in my root folder..
EG http://www.mpking.com/cca
redirect to:
http://www.mpking.com/categories/13-CCA
I made a index.php with the following and placed it in the cca folder:
Code: Select all
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.mpking.com/categories/13-CCA");
exit();
?>I have URL Rewriting set to use Apache errorhandling. (it was defaulted to none)
What am I missing?