Articles of site url

Changing WordPress blog name and web address

I created a self-hosted WordPress blog (on Dreamhost) several years ago. I’ve never truly been happy with the name and URL/domain of the blog, and I’ve decided that I want to change it. Here’s what I’d like to do: Register the new domain name. (Say for example.) Redirect traffic from the old domain name […]

What does $scheme in site_url function do?

Could someone tell me what the $scheme precisely does in the site_url function? What does it provide and how to use it? Of course I have read the Codex, but since I am not a native English speaker, nor a native coder, I am not sure.

get url page template

I have created a page template where I need current page URL I have tried get_site_url(); and get_permalink(); but it shows nothing. Let me know is anything missing in code.

Override WordPress theme url

I have a site where I used, but if I change my site URL to or which are all same site. If I changed anything in the above urls it should override theme url. Currently it is showing from the database value. I used define(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’] ); define(‘WP_SITEURL’, ‘http://’ . […]

Putting my site live

Can anyone help? I’ve been building a wordpress site in a sub directory of an umbrella ‘development domain’ if you will, and am ready to go live with the site. It’s a single install of wordpress. The wordpress file location is to remain exactly as it is, and we’re just repointing the DNS of the […]

How to get rid of index.php?

Does anyone know how I can get rid of index.php in my URL? Right now if I add a new page, the address will be: But I want it to be: I surfed the web a lot! Changing the permalink doesn’t work. Does anyone know how I can fix this?

Images not working using Featured post

I have recently moved a wordpress website to, And functionality is good and working well. And i have created a post with a image in it using Featured Image, and when i publish this post, its not displaying images in it. And when i check the URL of image using Inspect Element, […]

Modify site URL via functions.php of a theme

My site URL in the database shows Is it possible to change this via functions.php into, however still maintaining in the database? My current scenario is that I have three developers who work locally and we want to use one database. We all connect to a remote database, however, the URLs from […]

Remove site root trailing slash

I am using WordPress for a “news” section on a e-commerce site. So the root of the wordpress install is in a sub-folder. I have setup the home & site URL to reflect this in the admin. I also make sure there are no trailing slashes in the permalinks. However, it keeps doing a […]

Getting links to work the same on development and production

I am working on a website where I am specifying links to pages within my site in other pages. I am using the same permalink post name structure i.e. on both development and production and I am using /index.php/sample-post/ to link to a specific blog. This works on production but not on development. My […]