• Hi,

    I’ve installed WordPress 2.0 from the scratch on my server (https://www.cyon.org.uk/). It seems to be working everything fine except the permalinks.

    I’ve gone through lots of things based on this list, but unfortunately it did not work for me.

    Here is my situation.

    1. I’m using WordPress 2.0 with PHP5 and Apache2. (I know I have mod_rewrite module in my PHP installation.)

    2. I have the .htaccess file with 644 permission setting, and it reads as follows.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php
    </IfModule>

    # END WordPress

    3. I can make and get an access the permalinks something like “https://www.cyon.org.uk/index.php/archives/52&#8221;.

    My question is that how do I remove ‘index.php’ in my permalinks? I tried to set the permalink at the ‘Site Admin’ page by typing “/archives/%post_id%” in custom field, but it never worked.

    It would be appreciated if someone could direct me to the right path.

    Thanks,

Viewing 15 replies - 1 through 15 (of 38 total)
  • I tried to set the permalink at the ‘Site Admin’ page by typing “/archives/%post_id%” in custom field, but it never worked.

    What do you mean by “it never worked”? Do you mean that the setting refused to save, just reverting to the previous setting? Or do you mean that even with that as your permalink structure, the index.php still appears in the links?

    Thread Starter soohyunc

    (@soohyunc)

    It means that the web browser displays “The page cannot be found”

    So you enter /archives/%post_id% into the permalinks field, click “Update,” and then immediately you see “The page cannot be found”?

    Thread Starter soohyunc

    (@soohyunc)

    No. What I tried to say is that I typed “/archives/%post_id%” into the permalinks field, and it says the permalinks structure information is updated well.

    But, afterwards, if I try to access a page something like “https://www.cyon.org.uk/archvies/52&#8221;, then the browser shows me “The page cannot be found”.

    Okay, do you know for certain that your server has mod_rewrite enabled? (I know you say “I know I have mod_rewrite module in my PHP installation”).

    Thread Starter soohyunc

    (@soohyunc)

    Yes, I am certain as I can see ‘mod_rewrite’ in Loaded Module section of my PHP information page.

    I can use ‘mod_rewrite’ in another application. I use ‘mod_rewrite’ for the Gallery2 (https://gallery.sourceforge.net/) without any problem.

    Hmm, the reason I asked is that it’s behaving as though it’s not using the .htaccess section you printed above. If that were working correctly, even an error page should redirect to index.php, not give the Apache message “The page cannot be found.”

    So is there anything prior to the WordPress block, quoted above, in your .htaccess that could be interfering with it?

    What happens if the following is the only line appearing in the .htaccess?
    ErrorDocument 404 /index.php

    Using %post_id% in the permalink always seems to lead to a 4040.

    Thread Starter soohyunc

    (@soohyunc)

    I have manually edited .htaccess file such that it only has a line “ErrorDocument 404 /index.php” in it. After that, I set its ownership and group to “www-data” so that WP 2.0 can have an access the file.

    I typed “/archives/%post_id%” into the permalinks field, and then tried to access a link something like “https://www.cyon.org.uk/archives/52&#8221;.

    But, it still failed! (The browser shows me up the same page like “The page cannot be found.”)

    It’s shame that the permalink in WP 2.0 is not smooth working for most people who use it.

    So, what else should I try? (By the way, the default paermalinks option always worked fine for me. But, I want something better permalinks.)

    I have manually edited .htaccess file such that it only has a line “ErrorDocument 404 /index.php” in it. After that, I set its ownership and group to “www-data” so that WP 2.0 can have an access the file.

    If you gave it write permission, then WP probably added to the .htaccess file. I meant for you to try it with only the ErrorDocument line in it.

    At any rate, it sounds like this is a server issue, not a WP issue. With the ErrorDocument line, you shouldn’t be getting any Apache error messages; the server should be sending all errors to the WP index.php page.

    Thread Starter soohyunc

    (@soohyunc)

    Hi, filosofo, Thanks for giving me your time and help.

    Okay, I also presume that this might be a server side issue. I wonder what sort of configuration should I add in my “apache.conf” for this get to work.

    I wonder if I add some “<Directory> … </Directory>” options in the apache.conf file?

    AllowOverride isn’t set to “none”, is it?

    Thread Starter soohyunc

    (@soohyunc)

    No. It’s been set to “All”.

    Here is my Apache configuration file, if you could give some realistic help. (https://www.cyon.org.uk/apache.conf.sample)

    Thanks,

    I’m admittedly way over my head in trying to troubleshoot Apache setups, but shouldn’t “RewriteEngine On” appear as a line between the <Directory /var/www> tags?

    Thread Starter soohyunc

    (@soohyunc)

    Okay, thanks for your help upto now.

    I will quit this issue as it didn’t work for me after gone through almost every step which was posted in this troubleshoot page.

    Too much hardship on WP 2.0’s permalink!

Viewing 15 replies - 1 through 15 (of 38 total)
  • The topic ‘PERMALINK Problem on WordPress 2.0’ is closed to new replies.