[wp-hackers] permalinks redirected despite WP_SITEURL

Otto otto at ottodestruct.com
Mon Aug 25 17:22:00 GMT 2008


Try setting WP_HOME instead of WP_SITEHOME.


On Mon, Aug 25, 2008 at 12:16 PM, Stephen Rider
<wp-hackers 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)
>
> Stephen
>
>
> --
> Stephen Rider
> <http://striderweb.com/>
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list