redirect .htaccess from folder to domain with parameters -


i need redirect folder parameter new domain, example:

from

www.domain.it/en/page/2/products 

to

www.domain.com/page/2/products 

how it?

i tried not working pourpose:

rewritecond $1 !/$ rewritecond %{request_filename}/en/ -d rewriterule (.+) http://www.domain.com/$1/ [r=301,l] 

you can use following mod-alias based solution

redirect /en/ http://domain.com/ 

Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -