Viewing 4 replies - 1 through 4 (of 4 total)
  • the problem is the .htaccess mod-rewrite that sends the “data” from the permalink to index.php works only if there is no actual directory with that name …

    try the following, open the .htaccess file in your blog’s root directory … it should look like this:

    rewriteEngine on
    # BEGIN WordPress 
    
    # requested URL_path does not resolve to existing file
    rewriteCond %{REQUEST_FILENAME} !-f
    # and requested URL-path does not resolve to existing directory
    rewriteCond %{REQUEST_FILENAME} !-d
    # rewrite the request to WordPress
    rewriterule . /index.php [L]
    # END WordPress

    and add 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]

    Thread Starter currentaffairs

    (@currentaffairs)

    I donot have any .htaccess file in the directory. What should I do now?

    Every wordpress installation has one, probably your ftp client doesn’t show system protected files … try using the Robots Meta plugin https://www.ads-software.com/extend/plugins/robots-meta/. It should let you edit the .htaccess file from within the wordpress dashboard

    Thread Starter currentaffairs

    (@currentaffairs)

    Ok, this is how the .htaccess file looks

    # 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

    What should be the changes?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalinks clash with Directory Name’ is closed to new replies.