httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel González <>
Subject [users@httpd] rewrite in .htaccess
Date Tue, 24 May 2016 10:06:12 GMT
Hi all,

  I´m having issues with a migration to a new domain redirecting all
URLs to the new domain.

  My .htaccess looks like this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

RewriteCond %{HTTP_HOST} ^oldomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^$
RewriteRule ^(.*)$$1 [R=302,L]

For the time being I´m using a 302 redirect until I made sure it works.

My main problem is that if I tyope I get redirected to But if type some sections, I don´t get any redirection:

I have purged the Varnish cache in case there is any issue because the
only section that gets redirected is (which is
bypassed by Varnish).

I have Apache 2.4.18 from Cpanel and behind Varnish



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message