Support » Fixing WordPress » My page permalinks is index.php/contact ?

  • Hello…
    My permalinks been this
    /index.php/contact/
    /index.php/case/123

    When i remove index.php from:
    /index.php/%postname%/
    I get this error code

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
Viewing 15 replies - 1 through 15 (of 18 total)
  • HI Tobbs,

    Just for SEO purposes it would be better to remove index.php as it does not make any sense having it in the URL.

    Thread Starter tobbs

    (@tobbs)

    Thanks for re…
    But i cant remove the index.php thats the problem

    Hi Tobbs,

    Please can you post the contents of your .htaccess file (from the root of your webspace) so I can see what you have?

    Thanks

    Thread Starter tobbs

    (@tobbs)

    Hmm… i dont have any htaccess files there… I dont fint them. In the root is nothing

    The .htaccess file is causing error. If you had changed the permalink to /index.php/%postname%/ it will give error. Since you can’t find the .htaccess file make a new file .htaccess
    with

    # 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

    and upload it to root.

    Check this out.

    Thread Starter tobbs

    (@tobbs)

    Thanks but i have test to do own .htaccess now and its still not works.
    i get:

    404 - File or directory not found.
    The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

    If you had altered the permalink custom value, change it back to earlier value and see.

    Thread Starter tobbs

    (@tobbs)

    I have change back it.
    Everything works but i can´t remove http://www.mypage.com/index.php/contact or http://www.mypage.com/index.php/blogg

    What sort of server is your site hosted on – Windows or Linux?

    Thrash those pages from Dashboard > All Pages. logout and relogin.
    Also check CHMOD permissions. Check with your service provider if the permissions for all files are 644. You can also change to 644.

    Thread Starter tobbs

    (@tobbs)

    Its on a Windows 2008 server…
    Can i do somthing with that ?

    Is it running Apache or ISS?

    Thread Starter tobbs

    (@tobbs)

    IIS…

    As far as I’m aware out of the box IIS doesn’t support .htaccess which means you won’t be able to remove the index.php from the url. A couple of possible options to remedy could be:

    • Perhaps consider getting a linux shared hosting account to host wordpress (it shouldn’t cost too much and the .htaccess will work out of the box)
    • Install http://www.isapirewrite.com/ on your IIS server (this allows IIS to read .htaccess). I’ve never used it but I believe this could be a solution.
    • Install Apache on your Windows Server
Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘My page permalinks is index.php/contact ?’ is closed to new replies.