Archive for the ‘.htaccess’ Category

Redirect using html codes

Posted: November 25, 2009 in .htaccess, apache, IIS

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 [...]

Redirection with .htaccess

Posted: July 8, 2009 in .htaccess, apache

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