Blog home and URL redirection
-
I have a domain name (https://www.the-rodeo.com) which I currently have set to forward to my current host (home.exetel.com.au/rodeoclown/).
One of these days (read: when I get some cash) I’ll actually get a real host and setup the dns properly but for now…I set the blog address to the-rodeo.com and the wordpress URI to the host address. This works fine, with all permalinks going to the the-rodeo.com address BUT the next page link at the bottom of the page (and in categories etc) gives a wrong URI (www.the-rodeo.com/rodeoclown/?paged=2).
I tracked down the error to the
wp-includestemplate-functions-links.php
file and theget_pagenum_link
function, but I can’t figure out why it is happening. The first line:$qstr = $_SERVER['REQUEST_URI'];
returns /rodeoclown/ (not sure about the slashes), and I’m not really sure why.Anyhow, for now I’ve fixed the problem with a massive hack (
str_replace('/rodeoclown','',$qstr);
) right before the return, but I really don’t like this and would like to fix it properly.Any ideas as to how to make this work properly?
thanks.
- The topic ‘Blog home and URL redirection’ is closed to new replies.