Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've changed my qtranslate configuration. I access to the english version now with:

http://en.mydomain.com/news/this-is-a-post

In search engines I have my pages indexed with this structure:

http://mydomain.com/news/en/this-is-a-post

I've tried adding these in my htaccess, but they are not working:

RewriteRule ^en/(.*)$ http://en.mydomain.com/news/$1 [R=301,L]

and

RewriteRule ^news/en/(.*)$ http://en.mydomain.com/news/$1 [R=301,L]

This is my entire htacess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /news/

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /news/index.php [L]

</IfModule>

Any idea how to do this ?

Thanks!

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.