Permanent Redirection With Apache The Apache web server also allows redirects. The easiest way, if your webmaster has configured Apache to allow it, is to create a file called .htaccess (note the dot in front!) in the folder containing the old page. Then add the following line to that file: Redirect permanent /foldername/oldpage.html http://www.example.com/newpage.html You [...]
Archive for the ‘.htaccess’ Category
Hi all, Here is the redirection engine code in .htaccess to redirect for particular domain ###To redirect mafekingartillery.co.uk to ###http://www.pen2print.co.uk/mafeking_artillery rewritecond %{http_host} ^(www.)?mafekingartillery.co.uk [nc] rewriterule ^(.*)$ http://www.pen2print.co.uk/mafeking_artillery/$1 [r=301,nc] It will redirect with 301 permanently ‘nocase|NC’ (no case) Thanks r3Team