Архиви на блога

Redirect all php files to wordpress posts or strip .php extension

If you need to redirect your old urls which are like alabala.com/see-this-post.php to alabala.com/see-this-post/ You can use this simple .htaccess redirect RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)\.php$ /$1/ [l,R=301,NC]

С етикет: , , ,
Публикувано в wordpress

wordpress strange redirect

WordPress is using lowercase in all urls but when someone types the url in the address bar then browser uses uppercase to encode url Uppercase is different from lowercase and wordpress can’t match url So solution is very simply This

С етикет: , , , ,
Публикувано в wordpress