WordPress.org

Ready to get started?Download WordPress

Forums

V1.5 Permalink problem (11 posts)

  1. imixed
    Member
    Posted 9 years ago #

    Hi Folks,

    Today, I switched my site http://www.imixed.net from Mambo to WordPress 1.5 beta (Jan 25th, 2005).

    rewrite_mod is loaded ... .htaccess file is there and contains the following settings:


    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [S=44]
    RewriteRule ^(impressum)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(impressum)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(impressum)/page/?([0-9]{1,})/?$ /index.php?pagename=$1&paged=$2 [QSA,L]
    RewriteRule ^(impressum)/?([0-9]+)?/?$ /index.php?pagename=$1&page=$2 [QSA,L]
    RewriteRule ^(impressum)/trackback/?$ /index.php?pagename=$1&tb=1 [QSA,L]
    RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1 [QSA,L]
    RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1 [QSA,L]
    RewriteRule ^page/?([0-9]{1,})/?$ /index.php?&paged=$1 [QSA,L]
    RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/page/?([0-9]{1,})/?$ /index.php?&paged=$1 [QSA,L]
    RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /index.php?s=$1&paged=$2 [QSA,L]
    RewriteRule ^search/(.+)/?$ /index.php?s=$1 [QSA,L]
    RewriteRule ^kategorie/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^kategorie/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^kategorie/(.+)/page/?([0-9]{1,})/?$ /index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^kategorie/(.+)/?$ /index.php?category_name=$1 [QSA,L]
    RewriteRule ^blog/author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^blog/author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^blog/author/([^/]+)/page/?([0-9]{1,})/?$ /index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule ^blog/author/([^/]+)/?$ /index.php?author_name=$1 [QSA,L]
    RewriteRule ^blog/([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^blog/([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^blog/([0-9]{4})/page/?([0-9]{1,})/?$ /index.php?year=$1&paged=$2 [QSA,L]
    RewriteRule ^blog/([0-9]{4})/?$ /index.php?year=$1 [QSA,L]
    RewriteRule ^blog/([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^blog/([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^blog/([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^blog/([0-9]{4})/([0-9]{1,2})/?$ /index.php?year=$1&monthnum=$2 [QSA,L]
    RewriteRule ^blog/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^blog/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^blog/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L]
    RewriteRule ^blog/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index.php?year=$1&monthnum=$2&day=$3 [QSA,L]
    RewriteRule ^blog/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^blog/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^blog/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L]
    RewriteRule ^blog/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/?$ /index.php?year=$1&monthnum=$2&day=$3 [QSA,L]
    RewriteRule ^blog/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L]
    RewriteRule ^blog/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA,L]
    RewriteRule ^blog/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/([^/]+)/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&paged=$5 [QSA,L]
    RewriteRule ^blog/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/([^/]+)/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA,L]
    RewriteRule ^blog/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/([^/]+)/trackback/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&tb=1 [QSA,L]
    </IfModule>

    # END WordPress

    .htaccess is located in the web server's root directory where also WP is installed.

    Accessing pages by e.g. http://www.imixed.net/blog/2004-10-09/apple-alles-neu-macht-der-herbst/ results in Error 404 whereas including "index.php" like http://www.imixed.net/index.php/blog/2004-10-09/apple-alles-neu-macht-der-herbst/ returns the page properly.

    What could be the problem here? Any idea?

    Regards,
    Mario

  2. thegreatnorth
    Member
    Posted 9 years ago #

    Did you let 1.5beta create the .htaccess file? or did you use an old one?

  3. imixed
    Member
    Posted 9 years ago #

    I had an old one on the server from my previous Mambo installation. By using an editor I deleted the former entries - so I had an empty file.
    Then I used the admin / options / permalinks tool to create the settings automatically in the .htaccess file.

  4. thegreatnorth
    Member
    Posted 9 years ago #

    I take it WP is installed in the folder "blog" and you just have the index in your root of your domain? I see you said WP is in the root yet your rewrite rules are adding "blog" after your domain name. You must still have "blog" somewhere in your setup that the re-directs are picking up and looking for.

  5. imixed
    Member
    Posted 9 years ago #

    All the stuff (.htaccess, index.php and WP files) are installed in my servers's root directory.
    The "blog" directory is jsut a logical one that I wanna have in the URL when the virtual structure is generated. "blog" is not a physically present directory.

  6. Try creating your permalinks without /blog/.

    When you decided to move WordPress to /blog/, read this: http://wordpress.org/docs/installation/different-address/

    For now, create your permalinks without /blog/.

  7. imixed
    Member
    Posted 9 years ago #

    Even without "blog" there isn't any difference. Without "blog" the virtual URL must be g. http://www.imixed.net/2004-10-09/apple-alles-neu-macht-der-herbst/ but is still not accessable whereas http://www.imixed.net/index.php/2004-10-09/apple-alles-neu-macht-der-herbst/ returns a proper page.
    As you see it doesn't matter how the virtual permalink looks like.

  8. Start your permalink structure with /archives/ and don't include /blog/.

    http://codex.wordpress.org/Using_Permalinks

  9. imixed
    Member
    Posted 9 years ago #

    Where should there be the difference ... I mean it's just the same - it's about a virtual URL definiton. Anyway, I did for a test ... but it's the same problem. :-(

    By checking out http://www.imixed.net/info.php you can see the configuration. Thus, the rewrite_mod should be loaded correctly, right?

  10. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    Apache needs to be setup to AllowOverride for All. Otherwise .htaccess is ignored.

  11. imixed
    Member
    Posted 9 years ago #

    rboren, thx for this tipp ...
    I checked my Web Hoster's forum and discovered that there is probably really a problem with .htaccess with certain web packages :-( A few days ago, I moved from one package/server onto another one. f***
    I contacted the support and wait for the feedback right now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.