• Resolved ectorg

    (@ectorg)


    My server is running Apache, so there’s no problem with mod rewrite. But I’m trying to set up Pretty Permalinks as so:

    mydomain.com/my-pretty-permalink/

    However, no matter what I seem to do, I end up with

    mydomain.com/index.php/my-pretty-permalink/

    I can manually type in the url without the index.php and it works just fine, but all the links in the pages put in the index.php.

    Am I missing something somewhere? I know it can work without index.php because I’ve seen plenty of sites doing just that.

    The options gives me this to add to my htaccess file:

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

    I tried changing it to this:

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

    and still the same.

    I’d really like to get rid of the index.php in the permalink if I can…how do I do it?

    Thanks!

    Juli

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ectorg

    (@ectorg)

    I’m wondering…

    I just upgraded from 2.0.3 to 2.0.4 before I turned on the pretty permalinks (I’m in the final stages of switching the site over to WP).

    I have another site that’s still on 2.0.3, and it works fine, but has a blog name in it, like this:

    mydomain.com/BLOGNAME/the-permalinks

    And it doesn’t insert index.php in there. Could it be something in the upgrade, because otherwise, the server is the same.

    I really want the security upgrades of the latest version, but I’m wondering if it’s the upgrade?

    In Options:Permalinks if you have chosen ‘Custom’ then use something like:
    /%postname%/

    No domain.com, no index.php… More tags here: https://codex.www.ads-software.com/Using_Permalinks#Structure_Tags

    Thread Starter ectorg

    (@ectorg)

    That’s exactly what I did, and I’ve got the index.php. I also tried some of the other tags, and no matter what I choose, I end up with /index.php/pretty-link-name

    Thread Starter ectorg

    (@ectorg)

    Erp, figured it out.

    Under options, where it says set blog address, I had it set as domain.com/index.php because I wanted to leave my .shtml page very basic because I’ve got good google rankings on it. (So they’d come to index.shtml, get a blurb about the site that ranks well, then click on into index.php to get started with the site)

    I can fix that with some tinkering.

    Thanks for your help, Yosemite. ??

    Juli

    Welcome..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pretty Permalinks – trying to get rid of index.php’ is closed to new replies.