apache - Htaccess 301 only part of the redirect works -


Hi im running a site from one domain to another, and I have created the following .htaccess file, but its work not doing.

* # Option + FollowSymlinks redirect to RewriteEngine 301

RewriteCond% {HTTP_HOST} el-netshop.dk $ [or]

RewriteCond% { HTTP_HOST} www.el-netshop.dk $

rewrite (. ) $$ 1 [R = 301, L]

I would like to do this in a URL where there is a list of URLs where the URL is different, along with just domains. East. The link is included in the above 5302 but the link is 5271.

Then with the rest, I want to make it a normal redirect.

Just do the above code code (. *) $ $ 1 and ignore special cases

What am I doing wrong?

After the text "itemprop =" text ">

according to the syntax is in the form of folows:

  redirect 301 / service http://foo2.bar.com/service  

Try this:

  Redirected 301 /pi/Dækkape_UG150_12_lysegrå_5302_.aspx http : //www.el-netsalg.dk/pi/Dækkape_UG150_12_lysegrå_5271_.aspx  

"" Without the parametro for the old path


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -