dominiczek55 wrote:Need to do 301 Redirect on XAMPP (1.7.3)!!!?
Yes, Yes, Yes I removed this "#" before this line "LoadModule rewrite_module modules/mod_rewrite.so" - But it is not working!
This step is correct and after saving the file restart Apache.
dominiczek55 wrote:I also tried putting .htaccess file in my directory, and I have there this:
redirect 301 / http://www.allwithtech.com/
I assume you want to redirect your http://allwithtech.com to http://www.allwithtech.com.
So give this a try in the .htaccess file in the root directory of your web site, instead of the entry you tried above.
- Code: Select all
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^allwithtech.com [nc]
rewriterule ^(.*)$ http://www.allwithtech.com/$1 [r=301,nc]
BTW if you get errors from using a .htaccess file, check the /apache/logs/error.log file for clues.