Should I set the html base url when using wordpress?

So in general there are two opinions on absolute versus relative URLs: use relative URLs because easier to move around use absolute URLs because easier to move around Confusing, yes. The argument boils down to that migrating things with relative URLs you don’t need to change domain. The counter argument is that you might need … Read more

How can I update dev links for a live site?

I’d recommend the following: (no affiliation) https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ For some reason I’ve had odd experiences with the search and replace db plugin recently. Also, I’d avoid using the defines in your wp-config.php file as some plugins do not use it and show strange behavior. Better to update the wp-options table for those two options if at … Read more

Is it possible to change image urls by hooks?

As you want to change (use different) URL for featured image only, you can use pre_option_upload_url_path hook. // Setting the uploads directory URL function wpse_change_featured_img_url() { return ‘http://www.example.com/media/uploads’; } add_filter( ‘pre_option_upload_url_path’, ‘wpse_change_featured_img_url’ ); This hook will not change URLs permanently but it will set uploads directory to some different URL temporally. This will also not … Read more

Dynamically change page title from URL param

You could do something like this in your header.php file (or where ever you are setting your page titles in your templates) <?php if (isset($_GET[‘user’])) : ?> <title>Entries from <?php echo(htmlspecialchars($_GET[‘user’], ENT_QUOTES)) ?></title> <?php else: ?> <title>Normal page title here</title> <?php endif; ?> Without more info on what plugin you are using, or how your … Read more

Best way to give site sub-page it’s own domain?

You are on the right track. Point your add-on domains to WordPress root Create WordPress landing pages Point to landing page using add-on domain Rel=canonical will prevent duplicate indexing penalty All landing page links will automatically point to canonical domain Naturally you will do all your editing from the canonical domain If you run into … Read more