• currentaffairs

    (@currentaffairs)


    Hi,

    There’s a problem with my Permalinks.

    This is my blog: http://thecurrentaffairs.com/ipl/

    When I Post something starting with “IPL” it doesn’t work with Permalinks and shows “Not Found”.

    I also changed by .htaccess file but it is still not working,,, can someone help me?

    Original .htaccess file:

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

    Changes I Made:

    Added this on a new line right after “# BEGIN WordPress “

    # If requested URL-path does start with “/ipl/”
    rewriteCond %{REQUEST_URI} ^/ipl(.*)$
    # rewrite the request to WordPress
    rewriterule . /index.php [L]

    Currently .htaccess file looks like this:

    # BEGIN WordPress

    # If requested URL-path does start with “/ipl/”
    rewriteCond %{REQUEST_URI} ^/ipl(.*)$
    # rewrite the request to WordPress
    rewriterule . /index.php [L]

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /cms/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /cms/index.php [L]
    </IfModule>

    # END WordPress

    Please also note that it is a Windows Server.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • buddha-trance

    (@buddha-trance)

    currentaffairs,

    I was reading once that the WP htaccess rules should be left exactly as they are, or they won’t work well.

    Try adding your lines after # END WordPress, using the same upper/lower case
    RewriteCond instead of rewriteCond
    RewriteRule instead of rewriterule

    Hope this helps, and it will make it work!

    Thread Starter currentaffairs

    (@currentaffairs)

    Thanks but I have changed the directory name after waiting for someone to help here for hours…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Directory Name conflict with Permalink’ is closed to new replies.