WordPress incorrectly redirects to local IP address?

Change the Site URL in Options Table. UPDATE `wp_options` SET `option_value` = ‘YOUR_SITE_URL’ WHERE `option_name` = ‘siteurl’ OR `option_name` = ‘home’; Also change the static URLs in your post content. UPDATE `wp_posts` SET `post_content` = REPLACE(post_content, ‘192.168.0.18/YOUR_LOCAL_SITE_URL/’, ‘YOUR_SITE_URL/’); Don’t forget to change the table prefix if its not ‘wp_’. Edit : Access PHPMyAdmin of your … Read more

Force Cron to run only on one server

I would create a constant in the wp_config.php defining which Server you are on. So far so good, not really magic. The tricky part, as you mentioned is to get the cron running for sure, and not aborting if it’s accidentally the wrong server. Try the function like this: function my_cron_callback() { if ( MY_SERVER_SETUP … Read more

WordPress hangs when I publish or update a post [closed]

Initially this sounds like a hosting problem and not a WordPress issue. Where are you hosted? Shared? Dedicated? php version? mysql version? Run through a typical wp hack protocol and check for base64 code in wp-config.php, any theme files and akismet plugin files… also any other php files. Database hacks are sometimes hard to find … Read more

Arabic Characters in URL returns 404 Error

I had same issue as you. I was trying to access the following URL, which results in a 404 error: The requested URL `/abb/public/main/category/كمال` was not found on this server. http://localhost/abb/public/main/category/كمال or http://localhost/abb/public/main/category/%D9%83%D9%85%D8%A7%D9%84 while accessing http://localhost/abb/public/main/category/فتنس http://localhost/abb/public/main/category/%D9%81%D8%AA%D9%86%D8%B3 or http://localhost/abb/public/main/category/ABCDEF works fine. I found the cause of issue in .htaccess file. It was: RewriteRule ^(.)$ abb/index.php?/$1 … Read more

Testing local server with MAMP/wordpress on mobile device? [closed]

I use xip.io for this. What is xip.io? xip.io is a magic domain name that provides wildcard DNS for any IP address. Say your LAN IP address is 10.0.0.1. Using xip.io, 10.0.0.1.xip.io resolves to 10.0.0.1 www.10.0.0.1.xip.io resolves to 10.0.0.1 mysite.10.0.0.1.xip.io resolves to 10.0.0.1 foo.bar.10.0.0.1.xip.io resolves to 10.0.0.1 Use a static IP address for DHCP: In … Read more

WordPress .htaccess subdirectory problem

Even though static files and directories do work with a mod_rewrite’d wordpress installation in the servers root you might need to exclude your CodeIgniter subdirectory from that mod_rewrite lineup. You can do so by placing an additional .htaccess file into the CodeIgniter directory and disable mod_rewrite in there: <IfModule mod_rewrite.c> RewriteEngine off </IfModule> Related: apache … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)