WordPress.org

Ready to get started?Download WordPress

Forums

Archives and Comments not working (6 posts)

  1. buttahmellow
    Member
    Posted 10 years ago #

    *bump*
    Also, to let you know, there is nothing wrong with my version of PHP, it is all good, it just never worked. You know how WP does that first entry and has one comment? The comment never worked, when I click on the comment link, it gives me a 404. Has anyone had this problem, or can see what I did wrong? Once again, thank you.

  2. carthik
    Member
    Posted 10 years ago #

    Try making the last two rules as follows:

    RewriteRule ^archives/category/?(.*) /wandless/blog/index.php?category_name=$1 [QSA]
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([0-9a-z-]+)?/?([0-9]+)?/? /wandless/blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]

    swap them and then remove a $ from in before /wandless/blog...
    You could probably copy and paste what I have typed above in place of your current last two lines...

  3. buttahmellow
    Member
    Posted 10 years ago #

    Ok, now this is my current .htaccess (I wasn't sure if I did this correctly..)
    DirectoryIndex index.php
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?em-watson.net/wandless(/)?.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?em-watson.net/wandless(/)?.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?wandless.em-watson.net(/)?.*$ [NC]
    RewriteRule .*\.(gif|GIF|jpg|JPG|jpeg|bmp|BMP|zip)$ http://em-watson.net/wandless [R,NC]
    RewriteBase /wandless/blog/
    RewriteRule ^archives/category/?(.*) /wandless/blog/index.php?category_name=$1 [QSA]
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([0-9a-z-]+)?/?([0-9]+)?/? /wandless/blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    And I still got a 404...Did I do it incorrectly? I wasn't clear on what you said...(I am pretty much a newbie to this stuff..) Thank you very much for your help :)

  4. carthik
    Member
    Posted 10 years ago #

    Yes you got all that right. Why do you have all the rewrite conditions? Just curious.
    Hmm, well, I thought that would solve it since it had for me. I suppose you could read up on rewrite rules, and try to get it running somehow, but you should not have to do that, thats too much work. :)

  5. buttahmellow
    Member
    Posted 10 years ago #

    The rewrite stuff was to prevent direct linking...But I'll see if my host could make their own anti direct link file, and then I could get rid of mine...Do you think that would work, if I got rid of all the other stuff?

  6. buttahmellow
    Member
    Posted 10 years ago #

    *bump*
    And a note, I moved the index page to here:
    http://www.em-watson.net/wandless/index887.php
    And a mini question..How would I remove the horizontal scrollbar, and make custom color scrollbars for when multiple entries are there? I mean, I know how to do it, but I have been trying to do it, and it won't do anything...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.