• guboogi

    (@guboogi)


    Let me start by saying that I know that it was recommended that WP be installed in the root directory, but nevertheless I have it installed in mydomain.com/blog/ and on my site I use php commands to simply grab the content, title, date, etc. I have multiple categories setup so that different pages on my site can grab only their relevant content. All of this works fine.
    The problem is that the different pages all reside in different folders, so when I set the $siteurl variable in options the archives links are setup incorrectly. I know you can manually specify variables like $blog and $cat in each individual page (that’s what I do) but is there a way to specify the $siteurl so that different pages can have different values instead of having one $siteurl variable for the entire blog? Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter guboogi

    (@guboogi)

    can this even be done? if not, i’ll try to think of an alternative way to organize my site, but if this can be done (via hack, or what not) any help would be appreciated. thanks!

    Thread Starter guboogi

    (@guboogi)

    Okay, I found somewhat of a solution to my own problem, so I thought I’d post it just in case someone had a similar problem.
    In the base settings, I defined the $siteurl variable to be a page name like “index.php” and left the $blogfilename variable blank. This creates archive links that are relative and just go to index.php/?p=1 etc. Not the best code, but it works for me since all that pages that call content reside in their own subdirectories and are called “index.php”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘defining siteurl variable’ is closed to new replies.