wp-config - Wordpress - how do you force the current URL?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

wp-config - Wordpress - how do you force the current URL?

Post by simonmlewis »

Hi
I have asked this before, but the Search on here isn't working to find "wp-config".

I have take a copy of a Wordpress website, database etc, and uploaded to a subdomain of ours to test with.
But it won't allow me to get to the site, because it redirects to the original URL.

I'm sure there is some code I can put into wp-config, a 'define' code, that forces the URL to a set one.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: wp-config - Wordpress - how do you force the current URL

Post by simonmlewis »

Ah yes that is the one! thanks,
Any ideas why search on here isn't working?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: wp-config - Wordpress - how do you force the current URL

Post by Vegan »

This site is using a Google plugin which is not that slick. My gaming site uses the MySQL native search capability which is actually much more powerful in addition to being much faster. I also use a related posts plugin to help find other posts of possible interest.
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
Post Reply