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

  • tobbs

    (@tobbs)


    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)
  • RichardWPG

    (@richardwpg)

    Johnb81

    (@johnb81)

    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.

    tobbs

    (@tobbs)

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

    NuBlue-Hosting

    (@nublue-hosting)

    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

    tobbs

    (@tobbs)

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

    praveen68

    (@praveen68)

    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.

    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.

    praveen68

    (@praveen68)

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

    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

    esmi

    (@esmi)

    Forum Moderator

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

    praveen68

    (@praveen68)

    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.

    tobbs

    (@tobbs)

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

    NuBlue-Hosting

    (@nublue-hosting)

    Is it running Apache or ISS?

    tobbs

    (@tobbs)

    IIS…

    NuBlue-Hosting

    (@nublue-hosting)

    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.