• Howdy:

    I’m using 1.5 and Kubrick. New to WP, but have used Dreamweaver and know html and CSS, but not much php (other than creating a page with a php extension in DW).

    I want to create an “About” Page and perhaps some other Pages. I only want to link to them “manually” in a horizontal menu bar I have (i.e., I don’t want the links to the Pages in the sidebar). The Codex says “Naturally, you can also link to Pages manually with an HTML link.” Sounds good.

    I’m all ready to try to “Create a Page,” from my admin area, and have been reading all about it, but I’m very concerned about what Creating a Page might do (or un-do) to my htaccess file.

    My htaccess file is fairly elaborate and finally set up the way I like so I don’t want WP to do anything too weird. Note also that I do NOT “have permalinks set up.”

    So. If I just use the Create a Page feature in my admin panel, is there any way, if things go really badly, that I can quickly delete the new Page and whatever it has added/done to my htaccess file?

    What WILL WordPress “do” to my htaccess file, anyway?

    Thanks for any clues. ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator James Huff

    (@macmanx)

    First make a backup of your .htaccess file. If this is your first time using your .htaccess file WordPress, WordPress will create a special section starting with “#Begin WordPress” and ending with “#End WordPress”. WordPress will then place the rewrite rules in between those two tags. From now on, WordPress will never touch information that exists outside of the “#Begin WordPress” and “#End WordPress” tags.

    @macmanx,
    If the permalinks are NOT set up – as the OP says – will WP still trying to rewrite the .htaccess file? (Just trying to learn something ??

    Thread Starter kay9

    (@kay9)

    Macmanx, thanks. That’s what I wanted to know, being concerned re: whether WP would, uh, vurp all over my htaccess files. (Yes, plural, multiple domains and addons, and only one using WP.)

    As you probably know, htaccess lines are real temperamental; didn’t want to take the chance on something messing up my long hours of code and all the sites.

    Sounds like WP’s Create Page function keeps any add’l hta directives separated and easy to find/delete if necessary. I also assume I will be able to delete the newly-created Page if something goes horribly wrong and I need to abort/restore.

    Again, gracias for the info!

    Moshu, I will be very interested in hearing the answer to your question too, and will wait to try “Creating a Page” until I know for sure.

    Moderator James Huff

    (@macmanx)

    If the permalinks are NOT set up – as the OP says – will WP still trying to rewrite the .htaccess file?

    Practice says “yes”, but just in case, you’ll want to backup your .htaccess file.

    Thread Starter kay9

    (@kay9)

    FYI:

    I “Created a Page” and WP did nothing to any of my .htaccess files. It did NOT add anything (i.e., no “# Begin WordPress, etc.).

    Which is as I had hoped. Just leaving this comment here in case anyone else comes along some day and wonders about this exact situation. (Note again that I did NOT have the permalinks set up, and I still don’t.)

    YMMV.

    Moderator James Huff

    (@macmanx)

    There is nothing to fix. The OP wanted exactly this: NOT to alter his .htaccess file ??

    You could always CHMOD your .htaccess file to prevent it from being written to, regardless of what WP tries to do to it.

    Create a page shouldn’t touch .htaccess for permalinks unless you specifically go in and activate permalinks. Even then, if you haven’t CHMOD’d the file to 666 or higher, its not going to get written to anyways.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Create a Page and my beloved custom htaccess file’ is closed to new replies.