[wp-hackers] Re: permalinks redirected despite WP_SITEURL
otto at ottodestruct.com
Mon Aug 25 19:48:50 GMT 2008
The GUID field should not be used as a URL anywhere in the whole of
WordPress. The fact that it is a URL is only coincidental.
All the GUID field should be is a globally unique identifier. That's
it. The URL is good for this because it will be unique across all
blogs everywhere in the world. Admittedly, I prefer to use a real UUID
in my designs, but the URL works just as well.
On Mon, Aug 25, 2008 at 2:23 PM, sunburntkamel <sunburntkamel at gmail.com> wrote:
> I'm not sure about posts, but for attachments, GUID is pretty
> critical. It's almost always preferable to do a find and replace on
> your SQL dump before importing it ( replacing 'striderweb.com' with
> On Aug 25, 2:09 pm, "Daniel Torreblanca" <regulatet... at gmail.com>
>> This might not be a solution but I had a real pain when I changed the
>> domain name of my blog a while back. the `guid` column in wp_posts
>> always contained the original URL, and this caused weird things to
>> happen - most noticeably was that none of the images in my posts were
>> served correctly anymore. I had to manually update all of those
>> I was so frustrated from having to do that that I didn't even bother
>> trying to find out what the `guid` was actually for or why it was
>> causing the problem I noticed.
>> Maybe this is somehow related?
>> On Mon, Aug 25, 2008 at 1:55 PM, Stephen Rider
>> <wp-hack... at striderweb.com> wrote:
>> > Correction. I do indeed have WP-HOME defined
>> > define('WP_SITEURL', 'http://striderweb.local:8888');
>> > define('WP_HOME', 'http://striderweb.local:8888');
>> > (The 8888 ports are what MAMP goes through.)
>> > On Aug 25, 2008, at 12:22 PM, Otto wrote:
>> >> Try setting WP_HOME instead of WP_SITEHOME.
>> >> On Mon, Aug 25, 2008 at 12:16 PM, Stephen Rider
>> >> <wp-hack... at striderweb.com> wrote:
>> >>> I have a WP test setup on my own computer. What is striderweb.com on the
>> >>> web is duplicated as striderweb.local on my computer.
>> >>> I frequently do a backup of my live site's database, and then import it
>> >>> into
>> >>> the local setup so I can test directly. After I've done this, "siteurl"
>> >>> in
>> >>> the database is still striderweb.com, so in wp-config.php I define
>> >>> WP_SITEURL as "http://striderweb.local". I've also defined WP_SITEHOME.
>> >>> The permalinks on the main page are correct, but when I click on one, I
>> >>> am
>> >>> redirected to the post on striderweb.com. If I copy the .local link and
>> >>> past in a new browser window, it's redirected.
>> >>> This ONLY happens with posts; not pages. If I click a page link, it
>> >>> comes
>> >>> up correctly on .local
>> >>> What could be going on here? Somehow WP is insisting on redirecting me
>> >>> to
>> >>> the live site in spite of WP_SITEURL.
>> >>> (This is WP 2.6.1)
>> > _______________________________________________
>> > wp-hackers mailing list
>> > wp-hack... at lists.automattic.com
>> wp-hackers mailing list
>> wp-hack... at lists.automattic.comhttp://lists.automattic.com/mailman/listinfo/wp-hackers
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers