• Resolved imagiazone

    (@imagiazone)


    Hi to all of you,

    I hope someone will be kind enought to answer my question(s).

    The facts:
    – I have installed WordPress in its own directory (named wordpress).
    – I have moved index.php to the root and changed the “require (‘./wordpress/. . . line, as it is mentioned in the documentation.
    – I have choose “Month and name” as a permalink structure.

    Stange things:
    – First I have any .htaccess file in my root where index.php has been moved.
    – Second, my Post’s permalinks look like this: “mysitename/index.php/2009/08/29/the subject”
    – I can’t see any directory named index.php. But, when I type the URL, I can reach the post ! Is that OK ?
    – Frankly, I don’t like having a directory named index.php. Seems to be a bit risky.

    I hope that my description is clear.

    I’ll wait for your comments.

    Thank you
    Jean Pierre Dagenais
    Quebec, Canada

    PS: I like very much WordPress. My installation is brand new. I can re-install it if you think that it might be the best.

Viewing 9 replies - 1 through 9 (of 9 total)
  • With permalinks enabled you aren’t getting a URL structure that mirrors a directory structure at all. It looks like a directory structure but its all imaginary. A directory named ‘index.php’ isn’t there, but neither is ‘2009’,’08’, or ’29’. So that isn’t a problem. What is the structure you have set up for your permalinks– Settings->Permalinks?

    Thread Starter imagiazone

    (@imagiazone)

    Hi apljdi,

    So this is why I don’t see any “index.php” directory.

    I have set the permalink structure to Month and name. It is WordPress that suggested : http://www.imagiazone.com/index.php/2009/08/sample-post/

    The Custom Structure reads as :
    /index.php/%year%/%monthnum%/%postname%/ Do you think that I can change the index.php part to something else. Seeing index.php in the link just make me nervous.

    Thanks

    Jean Pierre Dagenais

    Permalink rewrites your URL that mean the folders are physically not present but still you can access it. Permalink will just convert the default wordpress URL (query string URL) to other structure which we set.

    Since your web site is hosted on IIS, you may need to install some additional module to use your custom permalink. You may refer the following kb:

    http://codex.wordpress.org/Using_Permalinks

    Also, it seems that you have very old version of IIS (probably 1.0)

    Kailash

    imagiazone,

    Yes, you should be able to remove the ‘/index.php’. Once you do you should no longer see it in your permalinks. There is no reason to be nervous about seeing though.

    Very nice pictures, by the way.

    Thread Starter imagiazone

    (@imagiazone)

    Thanks to both of you.

    Kailash1, this probably explain why I don’t see any .htaccess file in my root directory.

    Apljdi, if I can change the index.php part of the permalinks without trouble, I will do so. Thanks for the comments on my photos. You probably reach my actual blog under PixelPost. PP is a good and robust product but I never liked the “one-photo-at-the-time” viewer. It is not the subject of this forum but, it is Trey Ratcliff’s blog http://www.stuckincustoms.com that made me think to move to WordPress. I am sure that it will be a good decision.

    Thanks again

    Jean Pierre Dagenais
    http://www.imagiazone.com

    If you are on a windows server and your IIS is bellow version 7 you will not be able to remove the index.php, it is part of how permalinks works with older versions of IIS.

    For you to be able to run pretty permalinks without the index.php you need to be on a Windows 2008, Vista or Windows 7 with IIS 7 running. The current version of wordpress supports the pretty permalinks in IIS 7 without you having to add any further modules to your hosting/server.

    They work just as they do with a linux server.

    Thread Starter imagiazone

    (@imagiazone)

    Hum hum,

    Thank you ZGani. So it is better to keep the structure that WordPress has decided (myblog.com/index.php/postname) even if I dont like the index.php part and live whith it ?

    Thanks for the precision.

    Jean Pierre Dagenais

    PS: This forum is a great source of knowledge.

    Yes for the time being you are better of leaving it as it is.

    And keep pestering your host to upgrade their servers so you can take the full advantage of wordpress’ new windows features 😀

    Thread Starter imagiazone

    (@imagiazone)

    Again,

    Thanks to all of you.

    How can I declare this post as RESOLVED.

    Thanks

    Jean Pierre Dagenais

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Permalinks with a directory named index.php !’ is closed to new replies.