Why does WordPress rely on an fully qualified site_url with a 15-step plan for moving a site?

From the Moving WordPress codex page (emphasis mine): When your domain name or URLs change there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display. If you do a search … Read more

Changing Site Address (URL) causes 404

Thank you in advance for any help you might provide. I have read many other posts, and unfortunately the provided solutions did not work. The problem is this: I have WordPress installed in a supdirectory http://www.example.com/wordpress and would like to change the front end url to http://www.example.com/somethingelse When I go to Settings > General and … Read more

How to remove “http://” When Echoing URL?

I’m seeking to echo the domain name (url) without the ‘http://’ (or ‘https://’). I’ve created the following: <?php $surl = bloginfo(‘url’); $findh = array( ‘http://’ ); $replace=””; $outputh = str_replace( $findh, $replace, $surl ); echo $outputh; ?> also another one (of many) I tried: <?php $surl = bloginfo(‘url’); echo str_replace(‘http://’, ”, $surl); ?> Seems like … Read more

Site redirects to wrong url when saving settings

I have a subdomain: https://blog.example.com/ I forcibly redirects to subdirectory: https://www.example.com/blog By changing site URL and some RewriteRule on .htaccess. Now the website and admin works fine except a small issue like when I tried to click save button on settings page (eg: Setting > Writing ) the site redirects to main domain: https://www.example.com/wp-admin/options-writing.php?settings-updated=true /blog … Read more

How to remove /index.php/ from URL’s

I’m a pretty basic WordPress user and know enough to install a theme and customize it. I’m helping a friend out with a new website and installed WordPress 4.4.2 in the root directory via cPanel on his uncle’s server. This is the first time I’ve used something other than a host-provided interface. My limited experience … Read more