• I used this kind of permalinks in my old blog (wp 1.2.2):
    /index.php/%year%/%monthnum%/%day%/%postname%/
    but it doesn’t work in the new intallation. If I set the structure of the permalinks to :
    /archives/%year%/%monthnum%/%day%/%postname%/
    it works even if the .htaccess file is empty.
    How can I let the permalink structure as it was?
    (the permissions of .htaccess are 777 so, wp should write the permissions in .htaccess, but it doesn’t)

Viewing 7 replies - 1 through 7 (of 7 total)
  • Are you using WordPress 1.5? Then perhaps this will help you ??

    Are you sure that your server is an Apache? Then perhaps your host has disabled the SERVER_SOFTWARE variable for security reason which WP1.5 uses to determine what server you’re using.

    If you’re sure that you have Apache then open the wp-includes/vars.php and search for this line:

    $is_apache = strstr($_SERVER['SERVER_SOFTWARE'], 'Apache') ? 1 : 0;

    Replace 0 with 1 or replace it with following line to tell WP1.5 that you’re really running Apache:

    $is_apache = 1;

    Thread Starter soteke

    (@soteke)

    Yes, I’m sure that my server is running apache (even if I can’t say which version). I changed the line you told me but the old permalink structure still doesn?′t work

    Moderator James Huff

    (@macmanx)

    If this works use it:
    /archives/%year%/%monthnum%/%day%/%postname%/

    In all honesty, the /index.php/ rules are just a poor work-around for when the normal permalinks don’t work. Also, set your .htaccess permissions to 644, otherwise, anyone can view it (and see your passwords if you’re password-protecting any directories).

    @soteke – FYI: Anyone can find out what your server is running.

    @macmanx – How can anyone view your .htaccess file? What would you type in the browser? Mine is set to 666 and you can’t see it if you went to it.

    Apache should normally be set to mask the .htaccess and .htpasswd files:

    <IfModule mod_access.c>
    <Files ~ "^.ht">
    Order allow,deny
    Deny from all
    </Files>
    </IfModule>

    Moderator James Huff

    (@macmanx)

    “How can anyone view your .htaccess file? What would you type in the browser?”

    I’m just going by what all of the .htaccess tutorials said.

    @macmanx: Ah, okay. My host hid it for me if it isn’t automatically, just like zeroK mentioned.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[1.5] Problems with permalinks’ is closed to new replies.