Incorrect page shown

You can change the general settings URL if you have access to the database by executing the SQL statement: UPDATE wp_options SET option_value = replace(option_value, ‘http://www.oldurl’, ‘http://www.newurl’) WHERE option_name=”home” OR option_name=”siteurl”; ‘http://www.oldurl‘ — Change this to the URL you set in general settings ‘http://www.newurl‘ — Change this to what you want the URL to be

No url when downloading PDF

See the answer here https://stackoverflow.com/a/13839507/1466973 , which involves sending headers with the appropriate values to cause the ‘save as’ dialog box to appear. That process will allow you to not provide the URL (which anyone can share), but provide the file (which people can share after they download).

WordPress inserting ?q= in URLs

Please make sure that you don’t have q as parameter in your permalink settings. You can see the permalink settings from wp-admin -> settings -> permalinks

URL redirects of webpage

Basically, it’s a canonical redirection. In WordPress, there is a function named redirect_canonical, or there’s a canonical redirect feature which: Provides an SEO enhancement which prevents penalty for duplicate content by redirecting all incoming links to one or the other. For example, if one visits a single post page where the default or “non-pretty” URL … Read more

append currency to URL

Thanks to @mozboz I figured out the answer to my question. I am posting it here in case it helps somebody else: WordPress (WPML plugin for multi-language and multi-currency) uses the cookie _wcml_dashboard_currency. I was able to set a cookie with the following code and that handled my problem with the currency selection changing after … Read more

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