• Resolved rachelkaye

    (@rachelkaye)


    I have a wordpress page named site.com/page

    I wanted to know if it were possible to have that same folder name actually existing on my website with other files inside it (but no index file) and if the original wordpress page would still work.

    thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Try it and see?

    Create a folder called test, and a page called test, save..

    Plonk some files in the folder, load the page/files up, see what happpens..

    2 minutes to do.. 😉

    Thread Starter rachelkaye

    (@rachelkaye)

    Sorry I should have said this, I have tried it and it doesn’t work, I was wondering if there was a way to get it to work. 🙂

    When doing it the directory files work, but the wordpress page no longer works

    No idea, that’s why i suggest giving it a shot…

    In my experience i’ve found the WordPress pages take presendence over the directories, due to the mod-rewrite rules (i use %postname% for my permalinks), but your experience may vary..

    Perhaps if you could explain why you feel the need to do this and others may be able to offer an alternative.

    Thread Starter rachelkaye

    (@rachelkaye)

    Thanks for your replies, I appreciate it 🙂

    I’m running a script on site.com/page and it requires files to exist in that directory.. I think the script may be able to be changed so it can point to another directory, but it would be a lot easier for me if this was possible!

    I was thinking playing around with .htaccess could make this work, but thinking about it again now I kinda doubt it’d be possible.. but if anyone can think of anything, please do let me know!

    Easier option would be to update the directory referenced in the script..

    The mod-rewrite rules are applied globally across various pages, once you start toying with those you stand the chance of messing up other pages.

    Post a link to your site or a link to the script, and i’m sure either myself or another kind chap can help you update it to use another directory.. (i’m off to bed now, but i’ll check back on you in the morning/afternoon – whatever it be)..

    Thread Starter rachelkaye

    (@rachelkaye)

    Thanks, that’s really nice of you.. this script thankfully comes with support included so I’ll direct my questions over to them. 🙂

    I find that if a real directory exists which duplicates the name of the virtual page url, the browser is on a recursive spin and ultimately dies returning an error.

    Better avoid it.

    S.K

    Thread Starter rachelkaye

    (@rachelkaye)

    Thanks, I will.

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

The topic ‘Directory by same name as wordpress page’ is closed to new replies.