• Resolved kohaku

    (@kohaku)


    I have a copy of WordPress installed in another folder on my server for theme testing purposes.

    However, when I go to test the archives, I’m taken to my main sites archive pages. Am I missing something in my .htaccess file?

    My testing WP install is a mirror to my main install except for the .htaccess.

    Any help would be greatly appreciated.

Viewing 15 replies - 1 through 15 (of 19 total)
  • If you have a local testing install of WordPress, you should make sure that the WordPress and Blog URI in your Admin panel are set to your local installation.

    If you’re moving the database back and forth, you definitely need to make some changes to your MySQL file beforehand to get it to work correctly.

    Thread Starter kohaku

    (@kohaku)

    The WP install is on a completely separate database and the WP/Blog URIs are both pointing to my my testing install.

    I’m not moving the databases back and forth. I’m just moving theme files back and forth.

    You might try rebuilding the .htaccess on your local machine.

    Are you moving it as well as the theme files?

    Otherwise, I’d recommend digging into your template and seeing exactly how the links for Archives are constructed.

    Thread Starter kohaku

    (@kohaku)

    Just moving the theme files.

    I’ve already gone over the theme files, nothing there to suggest that the archives should link to the main archives.

    I’ve tried rebuiling the .htaccess with no luck.

    kohaku,

    I’m sorry, I didn’t read carefully and thought you had an install on a local dev machine and the live install on the server. Instead, both of your installs are on your server.

    Can you post a link for us to look at?

    Also, if you’re referring to a list of archives in the sidebar, you may want to post the source of the sidebar.php (or other appropriate) file.

    Thread Starter kohaku

    (@kohaku)

    Sorry, I guess I should have made it more clear. I do have an install on a local dev, but I know the archives don’t work on it.

    Anyway, my testing is located at https://infragilis.net/test/wordpress.

    The archives are set to be at https://infragilis.net/test/wordpress/archives. When I go to check, it reverts to https://infragilis.net/archives.

    Hey kohaku,

    I’ve had a look and it looks like all of your nav links in your horizontal nav point back to the ‘root’ WP install.

    Can you post the code for this navigation:

    <div id="navigation">
    
    	<div class="menu">
    		<div class="block"><a class="menu" href="https://www.infragilis.net">blog</a></div>
    
    		<div class="block"><a class="menu" href="https://infragilis.net/about">about</a></div>
    		<div class="block"><a class="menu" href="https://infragilis.net/domain">domain</a></div>
    		<div class="block"><a class="menu" href="https://infragilis.net/about/booklist">booklist</a></div>
    		<div class="block"><a class="menu" href="https://infragilis.net/archives">archives</a></div>
    		<div class="block"><a class="menu" href="https://infragilis.net/contact">contact</a></div>
    		<div class="block"><a class="menu" href="https://colourlovers.com/lover/infragilis">colour&hearts;</a></div>
    
    		<div class="block"><a class="menu" href="https://feeds.feedburner.com/infragilis">rss</a></div>
    	</div> <!-- end menu -->
    
    </div> <!-- end navigation -->

    It’s quite obviously linking back to the ‘root’ WP install, but it would be helpful to see the file, or code, that’s generating this menu.

    Curious: did you create this theme, or download it?

    Thread Starter kohaku

    (@kohaku)

    Since the links are hard-coded into the theme, I didn’t change them for the testing stage. I just manually type in the address to the archives.

    I created it. Thanks for asking.

    Since the links are hard-coded into the theme, I didn’t change them for the testing stage. I just manually type in the address to the archives.

    That’ll do it. If the links are hard-coded instead of using template tags, they’re ‘absolute,’ if that makes sense. I could put your theme on my blog and the links would still go to yours.

    I created it. Thanks for asking.

    Looks good!

    Thread Starter kohaku

    (@kohaku)

    That’ll do it. If the links are hard-coded instead of using template tags, they’re ‘absolute,’ if that makes sense. I could put your theme on my blog and the links would still go to yours.

    But since I’m manually typing in the archives address, I’m not exactly understanding how those links would override. I’m not clicking on them, I’m just trying to make it easier on me for when I upload it to my root install.

    But since I’m manually typing in the archives address, I’m not exactly understanding how those links would override. I’m not clicking on them, I’m just trying to make it easier on me for when I upload it to my root install.

    Maybe I’m misunderstanding.

    If you’ve manually typed in the Archives link in your template like so:

    <div class="block"><a class="menu" href="https://infragilis.net/archives">archives</a></div>

    . . . and you aren’t changing this line between your root install and your new dev install, then it will always point to your root install.

    Would it be possible for you to cut & paste the code from your new theme’s navigation here? The theme you’re using on https://infragilis.net/test/wordpress/

    Thread Starter kohaku

    (@kohaku)

    It’s the same coding that you posted earlier.

    What I mean is that I’m not clicking on the archives link on the page to go to the archives.

    I’m manually typing in the address to the archives in my browser’s address bar to test what the archives look like, but my root install overrides the test site.

    Does that make more sense.

    Yup. Perfect sense.

    Could you post the contents of you .htaccess file in your test install?

    On a side note, did you do the sketch (girl with “Speaking is not Communicating” shirt) used on your error page?

    Oops, site hung; double post.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Archives issue’ is closed to new replies.