php - HTACCESS redirecting sub sites to main site -


my .htaccess .co.uk website. have 2 language sties in directory .pl in folder /language/pl .fr in folder /language/fr these affecting links in sites. can stop pages in foreign language sites being affected.

   options +indexes rewriteengine on rewritecond %{http_host} ^mysite.co.uk [nc] rewriterule ^(.*)$ http://www.mysite.co.uk/$1 [l,r=301]    redirect /oil.html http://www.mysite.co.uk/oils/pages/ind_oils.html redirect /honing.html http://www.mysite.co.uk/pages/mandrels.html redirect /toolingabrasives/heavyduty.html http://www.mysite.co.uk/pages/hd-super-tooling.html redirect /europe.html http://www.mysite.co.uk/pages/misc/distributors.html redirect /toolingabrasives/horizontal.html http://www.mysite.co.uk/pages/mandrels.html redirect /mysite_honing.htm http://www.mysite.co.uk/index.html redirect /honing_abrasives.htm http://www.mysite.co.uk/index.html  redirect /oils/pages/extra.html http://www.mysite.co.uk/oils/pages/oil_pages/extra.html redirect /pages/misc/contact_us.html http://www.mysite.co.uk/pages/misc/contact_form.html redirect /abrasives/pdf/ http://www.mysite.co.uk/pdf/abrasives-tooling/ redirect 301 /pages/ http://www.mysite.co.uk/pages/ redirect 301 /pages/machines/ http://www.mysite.co.uk/pages/machines/ redirect 301 /oils/ http://www.mysite.co.uk/oils/ redirect 301 /oils/pages/ http://www.mysite.co.uk/oils/pages/ redirect 301 /oils/pages/ http://www.mysite.co.uk/oils/pages/ redirect 301 /pages/misc/ http://www.mysite.co.uk/pages/misc/ redirect 301 /pages/newspages/ http://www.mysite.co.uk/pages/newspages/ redirect 301 /pages/services/ http://www.mysite.co.uk/pages/services/ redirect 301 /abrasives/pages/ http://www.mysite.co.uk/abrasives/pages/ redirect 301 /abrasives/pages/ http://www.mysite.co.uk/abrasives/pages/ redirect /pages/brochure_honing_tooling.html http://www.mysite.co.uk/pages/brochure_honing_machines.html redirect /pages/honing_tooling.html http://www.mysite.co.uk/pages/honing-tooling.html redirect /pages/brochure_grinding.html http://www.mysite.co.uk/pages/brochure_honing_machines.html redirect /pages/privicy.html http://www.mysite.co.uk/pages/misc/privacy.html redirect /pages/news/news.html http://www.mysite.co.uk/pages/newspages/news.html redirect /pages/oil/extra.html http://www.mysite.co.uk/oils/pages/oil_pages/extra.html redirect /pages/about_us.html http://www.mysite.co.uk/pages/misc/about.html redirect /pages/misc/privicy.html http://www.mysite.co.uk/pages/misc/privacy.html redirect /abrasives/pages/sectors/steel.html http://www.mysite.co.uk/abrasives/pages/steel-industry.html redirect 301 /pages/oils/oils.html http://www.mysite.co.uk/oils/index.html redirect 301 /pdf/new_vertical_brochure.pdf http://www.mysite.co.uk/pdf/tooling/new_vertical_brochure.pdf redirect 301 /pdf/mandrels_accessories_brochure_1.pdf http://www.mysite.co.uk/pdf/tooling/mandrels_accessories_brochure_1.pdf redirect 301 /pages/brochures_machines.html http://www.mysite.co.uk/pages/brochure_honing_machines.html redirect 301 /pages/machines/e2000-xl.html http://www.mysite.co.uk/pages/machines/e2000xl.html   errordocument 404 "/404//http-error.cgi" errordocument 500 "/404//http-error.cgi"  <ifmodule mod_expires.c> expiresactive on expiresbytype image/jpg "access 1 year" expiresbytype image/jpeg "access 1 year" expiresbytype image/gif "access 1 year" expiresbytype image/png "access 1 year" expiresbytype text/css "access 1 month" expiresbytype application/pdf "access 1 month" expiresbytype text/x-javascript "access 1 month" expiresbytype application/x-shockwave-flash "access 1 month" expiresbytype image/x-icon "access 1 year" expiresdefault "access 2 days" </ifmodule> 


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -