Problems with 301 redirect functions and wordpress multisite htaccess code
-
Hi, I have some problems with wordpress multisite htaccess code to redirections some old domain and old url.
This htaccess tester http://htaccess.madewithlove.be/ return me some error:
<IfModule mod_rewrite.c> 2 RewriteEngine On 3 RewriteBase / 4 RewriteRule ^index\.php$ - [L] 5 # uploaded files 6 RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] 7 # add a trailing slash to /wp-admin 8 RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] 9 10 RewriteCond %{REQUEST_FILENAME} -f [OR] This variable is not supported: %{REQUEST_FILENAME} 11 RewriteCond %{REQUEST_FILENAME} -d This variable is not supported: %{REQUEST_FILENAME} 12 RewriteRule ^ - [L] This rule was not met because one of the conditions was not met 13 RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] 14 RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] 15 RewriteRule . index.php [L] This rule was met, the new url is http://inonda.tv/index.php The tests are stopped because the L in your RewriteRule options 16 </IfModule> 17 18 <IfModule mod_security.c> 19 SecFilterEngine on 20 SecFilterScanPOST on 21 </IfModule> 22 23 RewriteCond %{HTTP_HOST} ^otranto\.inonda\.le\.it$ [OR] 24 RewriteCond %{HTTP_HOST} ^www\.otranto\.inonda\.le\.it$ 25 RewriteRule ^/?$ "http\:\/\/vacanze\.inonda\.tv\/" [R=301,L] 26 27 RewriteCond %{HTTP_HOST} ^inonda\.le\.it$ [OR] 28 RewriteCond %{HTTP_HOST} ^www\.inonda\.le\.it$ 29 RewriteRule ^/?$ "http\:\/\/inonda\.tv" [R=301,L] 30 31 RewriteCond %{HTTP_HOST} ^inonda\.eu$ [OR] 32 RewriteCond %{HTTP_HOST} ^www\.inonda\.eu$ 33 RewriteRule ^/?$ "http\:\/\/inonda\.tv" [R=301,L]And when I digit an redirected url it send me in this link: http://inonda.tv/wp-signup.php?new=inonda.le.it (in this case I have digit inonda.le.it) and I have this message:
Il sito che stavi cercando, http://inondaleit.inonda.tv/, non esiste.
But if I put on top of my htaccess the RewriteCond and the RewriteRule all old main domain have a correct redirection, but if I click an old post url, it redirect me to the wp-signup page.. to redirect all permalink I have used permalink finder plugin and all worked fine before 4.0 version. Now, if I deactivate permalink finder, all old link is redirect to wp-signup page….. and the error is in the htaccess wordpress multisite code. But what is the error? What should I do?
The topic ‘Problems with 301 redirect functions and wordpress multisite htaccess code’ is closed to new replies.