toasty525 0 Newbie Poster

Hi,

I have the following .htaccess file in the directory <domain>/ss/c/

RewriteEngine On
Options +FollowSymLinks

RewriteBase /ss/c/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /ss/c/index.php [L]
RewriteCond %{HTTP_HOST} !^www\.sexspinner\.com [NC]
RewriteRule ^(.*)$ http://www.sexspinner.com/ss/c/$1 [R=301,L]

and a index.php file with the following PHP

<?PHP

$cat = $_SERVER['REQUEST_URI'];
echo $cat;

?>

If you go to <domain>/ss/cc/sometext index.php will display "/ss/cc/sometext" wich is fine but i am trying to use a file in <domain>/ss/ to redirect to the index.php in /ss/c/ as follows:

<?PHP
header ("Location: http://sexspinner.com/ss/c/sometext");
?>

but when i try it that way the index.php file in /ss/c/ just outputs "/ss/c/index.php" instead of "/ss/c/sometext".

Has anyone any idea why it is doing this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.