[wp-hackers] permalinks redirected despite WP_SITEURL
Jason Webster
jason at intraffic.net
Mon Aug 25 19:35:31 GMT 2008
I'd recommend flushing the rewrite rules. It _may_ help.
Stephen Rider 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)
>
> Stephen
>
>
More information about the wp-hackers
mailing list