.htaccess locally

Status
Not open for further replies.

protocol96

New member
Mar 15, 2007
34
0
0
with ur gf
www.techbirbal.com
i am on opensuse linux machine, i need to verfiy if the 301 redirect will work properly, so i want to check it locally first, i have created a .htaccess file in my htdocs folder
and have the following lines in it

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

but it aint working, can someone tell me , how to go about it?
 


hey, i dunno y it wasnt working in .htaccess file but wen i added this httpd.conf file it started working,
So another question, i have a sub-domain for which i m raking pretty well for inner pages but i need to move the sub-domain to another link,
abc.example.com to www. domain.com/home/furniture/article?id=234.

using 301 redirect i wont lose serp rankings, so wat will happen to my inner SERP pages, for ex: wat will happen to abc.example.com/watever/house/home/article.php
 
Status
Not open for further replies.