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

restore wordpress widdget from database backup

If you wish to restore wordpress text widget from backup you need to follow those steps 1. Copy content from wp_options of the widget for example option_name=widget_text 2. Paste it on the new site 3. Restore all widgets on positions

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

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource

If you have following error Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at Then you need to add some lines to your .htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / Header add Access-Control-Allow-Origin „*“ Header

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

wordpress forse css styles version

Sometime css files version need to be set so update to be forced on all users which are visiting the site This can be done very easy in wordpress just need to add those lines in function.php of the theme

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

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