.htaccess - mod_rewrite - change top level domain -


im trying find out issue following mod_rewrite rule:

on account on "strato" (hoster) rule working, not working on "1und1" (another hoster). there wrong rule?

# rewrite rule rewriteengine on rewritebase /  rewritecond %{http_host} ^.*original-domain.de [nc]  rewriterule /* http://new-subdomain.anotherdomain.de%{request_uri} [p] # end rewrite rule 

is there perhaps or better way redirect done?

the goal user visiting http://www.original-domain.de (with or without www.) should see content of http://new-subdomain.anotherdomain.de original-domain adress still stays in adressbar of browser. in other words, user won't recognize got redirected.

and, question: stands [p] after rewrite rule? if change [l] redirect works new-subdomain.anotherdomain.de adress beeing displayed in browser? couldn't find website describes properly.

thanks in advance!


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

excel vba - VBA Proxy auto-configuration for http requests -

php - phpWord - Tables with borders in headers/footers -