• I’ve created a WordPress posting with an URL slug “favicon”:

    https://blog.zeta-producer.com/favicon/

    Unfortunately this seems to somehow interfere with the favicon, because instead of showing the posting, I see an error message:

    Not Found
    The requested URL /favicon.ico/ was not found on this server.

    Probably some URL rewriting gets in the way.

    My question:

    Are there any workarounds (beside renaming the slug) to show my posting under the “favicon” slug?

    More information:

    I _do_ have a /favicon.ico file in-place. (no trailing slash, obviously)

    My .htaccess file looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>    
    # END WordPress
    • This topic was modified 8 years, 4 months ago by uwekeim.
    • This topic was modified 8 years, 4 months ago by uwekeim.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter uwekeim

    (@uwekeim)

    Update:

    – I’m running Apache on a Windows Server 2012, just in case this matters.
    – I do have no root folder called favicon in my WordPress site.
    – In my Apache httpd.conf there is no occurrence of the word “favicon”.
    – On a totally different Windows Server 2012 with a WordPress blog, the same erroneous behaviour occurred.

    • This reply was modified 8 years, 4 months ago by uwekeim.
    Thread Starter uwekeim

    (@uwekeim)

    The error is gone, if I delete the physical favicon.ico file in the root of my WordPress website.

    • This reply was modified 8 years, 4 months ago by uwekeim.
    Thread Starter uwekeim

    (@uwekeim)

    My workaround is now to move the “favicon.ico” to another folder and specify it explicitely in the “head.php” of the theme like e.g.:

    <link 
        rel="shortcut icon" 
        type="image/x-icon" 
        href="/wp-content/themes/twentyfifteen/favicon.ico">
    Thread Starter uwekeim

    (@uwekeim)

    The solution was to modify the

    Options +MultiViews

    and change it to

    Options -MultiViews

    in my Apache configuration file.

    Now my “favicon” slug URL works perfectly.

    See also my posting on WordPress Stack Exchange for more details.

    • This reply was modified 8 years, 4 months ago by uwekeim.
    • This reply was modified 8 years, 4 months ago by uwekeim.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Posting with slug “favicon” gets redirected’ is closed to new replies.