Can't get permalink to work

Discussion in 'WordPress' started by stupidfly, Dec 12, 2006.

  1. #1
    I just bought a new domain and set up wordpress on it. It sends me to a 404 when I try using anything but the default option. I can't get my permalinks to work right. They do work on other blogs on the same host, so it can't be a compatibility problem with my version of PHP installed.
     
    stupidfly, Dec 12, 2006 IP
  2. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you make your .htaccess writeable, or copy the code into your .htaccess?
     
    mdvaldosta, Dec 12, 2006 IP
  3. stupidfly

    stupidfly Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have .htaccess chmod'd to 666 (as I was instructed on the wordpress website). I don't know of any code to "enter" into the .htaccess file. As I understand it, wordpress should update it automatically... which is why I have to chmod it.

    I checked the .htaccess on the other site, and it basically shows the samething. The difference with the other site is that it is not in the main directory. This new site, where I am having the problems, is in the main directory.
     
    stupidfly, Dec 12, 2006 IP
  4. max pain

    max pain Notable Member

    Messages:
    2,179
    Likes Received:
    521
    Best Answers:
    0
    Trophy Points:
    260
    #4
    Once you make changes to the permalinks structure - just scroll down in the same window and you will see a code snippet in a box below this text :

    Copy the code in that BOX and paste it in ur .htaccess and save it on the server i.e replace the original .htaccess file.

    Everything will b fine then.
     
    max pain, Dec 12, 2006 IP
  5. stupidfly

    stupidfly Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Nope, that didn't work either. The file is writable, so that box didn't show up. Just for shits, I tried changing it to 444 so that box would appear. What the box showed was what is already in the .htaccess file.
     
    stupidfly, Dec 12, 2006 IP
  6. max pain

    max pain Notable Member

    Messages:
    2,179
    Likes Received:
    521
    Best Answers:
    0
    Trophy Points:
    260
    #6
    Can you paste the URL structure u r using for the permalinks..
     
    max pain, Dec 12, 2006 IP
  7. stupidfly

    stupidfly Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    /%year%/%monthnum%/%day%/%postname%/
     
    stupidfly, Dec 12, 2006 IP
  8. max pain

    max pain Notable Member

    Messages:
    2,179
    Likes Received:
    521
    Best Answers:
    0
    Trophy Points:
    260
    #8
    In this case blog is installed in a dir "blog" and the .htaccess looks like this:

    does the same reflect in your .htaccess other than "dir"?
     
    max pain, Dec 12, 2006 IP
  9. stupidfly

    stupidfly Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    Code (markup):
    That is what my .htaccess file shows. The blog is in the main directory.
     
    stupidfly, Dec 13, 2006 IP
  10. max pain

    max pain Notable Member

    Messages:
    2,179
    Likes Received:
    521
    Best Answers:
    0
    Trophy Points:
    260
    #10
    Looks good to me - would like to have a look at the problem if you can PM me the url.
     
    max pain, Dec 13, 2006 IP
  11. stupidfly

    stupidfly Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    It sounds like, because the website is a "secondary" site on my hosting, it won't work. The .htaccess must not work. That is ridiculous, especially since the host is supposed to be a virtual private server. Luckily, I paid for it within 30 days ago and can get my money back.

    Looks like I'm back in the market for a new host.
     
    stupidfly, Dec 13, 2006 IP