• Hello. I made some modifications to show the blog at the root of my domain. I followed instructions as per this manual and all worked out fine, except for one thing.

    I created this permalink structure (the only one that would work and not break up links):

    /index.php/archives/%year%/%monthnum%/%day%/%postname%/

    I uploaded the corresponding .htaccess file to the root of the domain and although all links work fine (with no query strings), they look like this:

    http://www.mydomain.com/index.php/archives/2005/01/17/test-1/

    Could anyone tell me how to rewrite my urls so that ‘index.php’ does not show up in permalinks?

    index.php is part of the modifications to make the blog show at the root. If I eliminate that from the virtual link, all permalinks will be broken… Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • A question to ask your host provider is, does your web server support .htaccess and mod_rewrite? If it does, then there should be no problem setting up permalinks without passing them through index.php.

    Thread Starter wpbob

    (@wpbob)

    Thanks.

    Yes, .htaccess and mod_rewrite work properly. Otherwise I would not be seeing this link http://www.mydomain.com/index.php/archives/2005/01/17/test-1/

    If I do not include index.php in the virtual URI, links are broken. Does this have to do with the fact that I have moved my index page out of the /wordpress/ folder? It is now at the root.

    Thanks.

    Passing the permalink through index.php is a solution for when .htaccess DOESN’T WORK. As it says on the Permalink options page in WP:

    In general for this you must use mod_rewrite, however if you put a filename at the beginning WordPress will attempt to use that to pass the arguments, for example:

    /index.php/archives/%year%/%monthnum%/%day%/%postname%/

    So, did it work without this *before* you moved your blog out of the /wordpress directory? If so, have you updated .htaccess to reflect the change? Is a correct version of .htaccess in the root?

    Thread Starter wpbob

    (@wpbob)

    Kafkaesqui, I think you are onto something… I just tried to rewrite http://domain.com to http://www.domain and the .htaccess did nothing, so I may have been under the illusion the rewrite was being accomplished when what was happening was that WP was using index.php for passing values, as you said.

    I read that passage several times and didn’t know what to make of it until now. I will check with my hosting provider and get back.

    Thanks!

    Thread Starter wpbob

    (@wpbob)

    ok. all 6 cylinders running.

    Mod_rewrite wasn’t enabled… phew.
    Thank you all!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘rewrite Permalinks issue’ is closed to new replies.