How to Code an .htaccess Redirect Without Changing the Address Bar -


hiho,

i redirect: http://ads.polishexpress.co.uk/en
to
http://ogloszenia.polishexpress.co.uk/en
without change adress bar.

my attempt displayed in code below:

     rewriteengine on     # use php5.4 default     addhandler application/x-httpd-php54 .php     rewritecond %{http_host} ^ads\.polishexpress\.co\.uk$ [or]     rewritecond %{http_host} ^ads\.polishexpress\.co\.uk\/en$     rewriterule ^/?$ "http\:\/\/ogloszenia\.polishexpress\.co\.uk\/en" [l] 

try rule:

rewritecond %{http_host} ads\.polishexpress\.co\.uk rewriterule ^(.*)$ http://ogloszenia.polishexpress.co.uk/$1 [r=301,nc] 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -