How to redirect website to another url via .htaccess

Posted in TipsTagged 4 Comments

Redirect individual website address to another one To redirect individual files, like anvar.in/about.html to about-me.html you can use a 301 redirect like this: Redirect 301 /about.html /about-me.html To redirect one specific file to another domain such as anvar.in/oldurl.htm to anvar.in/newurl.htm: Redirect 301 /oldurl.htm http://anvar.in/newurl.htm Redirect an old domain to a new domain If you had…

Enable htaccess in xampp

Posted in LinuxTagged , Leave a comment

Enable htaccess ( mod_rewrite ) in xampp For some reason my install of XAMPP didn’t have mod_rewrite automatically enabled? Not really sure why but basically below are the instructions on how to enable .htaccess mod_rewrite in xampp. 1. Go to the directory of installation C:\xampp\apache\conf 2. Open and edit httpd.conf in a text editor 3.…