All styles are looking for the site URL twice

If you have set the stylesheet href as relative path eg. /example.com/wp-content/… it will append it to the current location http://example.com in your browser, so for just a relative path use just /wp-content/. But if you specify an absolute path eg. http://example.com/wp-content/… or even //example.com/wp-content/ it will just look for that directly. Either way should … Read more

How to change URL of my pages?

I combined this nice solution for adding an additional option to the permalinks page and this snippet for adding a custom base name to page permalinks. Usage Save the snippet below as wpse238124-page-base.php, place it in your plugins directory, and activate Page Base on your plugins page. Then, visit your permalinks page, enter your desired … Read more

Homepage cannot be found

Visiting your domain name redirects to domain.com/index.html and that’s where your issue is – WordPress doesn’t know what index.html is and throws 404 error. The redirection might be caused by many things, hard to tell just by visiting your homepage. Are you sure that you’ve setup the WordPress URL and Home URL settings correctly? How … Read more

WordPress URL not working?

This is not how rewrite_rules works in WordPress. You miss two things. Match. It has $1, but in reality (take a look to example), you need to work with $matches. Your Query Var. You using q, but its not wp native or declared in example code. You can use one of the public ones or … Read more

WordPress switch domains

First of all, go to phpMyAdmin, go to your database for test.site.com and edit siteurl and/or home in wp_options table. That’ll fix your test.site.com Now, to migrate test.site.com to site.com, as you’ve difficulties doing it manually, I’d suggest a plugin like Duplicator or All-in-One WP Migration to migrate the site. It’s way easier that way. … Read more

URL problem in my site

Use the duplicator plugin. It basically make a snapshot and an Installer.php file. When moving the archive snapshot zip and php file to your new server, you navigate to http://yoursite.com/Installer.php. It’s like a setup process that asks you for your new database (you can point it to an empty database) and what the new URL … Read more

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