WordPress rewrites my link with custom URL scheme to http(s)

I think your problem is that an HTML page is a single point of reference. Swift allows you to define that custom URL in your app ( https://www.hackingwithswift.com/example-code/system/how-to-make-your-app-open-with-a-custom-url-scheme) but WordPress rewrites itself and all sub-pages, api etc. to the URL defined in the database options. So, short answer, you can’t do that. If you were … Read more

Block a specific url request

Like you suggested, use WP_HTTP_BLOCK_EXTERNAL to stop all external URL requests. And then use WP_ACCESSIBLE_HOSTS to set allowed URLs. From the WP Codex, found on this page. wp-config.php define( ‘WP_HTTP_BLOCK_EXTERNAL’, true ); define( ‘WP_ACCESSIBLE_HOSTS’, ‘api.wordpress.org,*.github.com’ ); Block external URL requests by defining WP_HTTP_BLOCK_EXTERNAL as true and this will only allow localhost and your blog to … Read more

How to make media URLs Unique

You could certainly change the upload folder structure using an upload_dir filter hook, but I think a more direct solution might be to append some other text to the end of the file name. I think an easy unique string could just be the current timestamp, and encoding it in hexadecimal would make it a … Read more

Accidentally changed the url

Re: the comments above: Read http://codex.wordpress.org/Changing_The_Site_URL It says: There are four easy methods to change the Site URL manually. Any of these methods will work and perform much the same function. And the Codex outlines each one. The first one is the easiest; add these lines to wp-config.php with FTP or your hosting control panel … Read more