WordPress.org

Ready to get started?Download WordPress

Forums

Overlapping permalink and folder name (6 posts)

  1. subirghosh
    Member
    Posted 6 years ago #

    For logistical reasons, I have to try something like this:

    i) Create a category called sitetrack. This would be an overview.
    ii) So category permalink would be: http://www.domain.com/sitetrack/

    Next I want to set up a separate installation in folder called sitetrack.

    So, the new installation would be at http://www.domain.com/sitetrack/ as well. Content of this instllation would be out of the main installation.

    I wanna know what kind of problems can it create?

    What overrides what? Does a mod_rewrite rule for permalink override a folder name?

  2. whooami
    Member
    Posted 6 years ago #

    you cant do that..it wont work

  3. ochiba
    Member
    Posted 6 years ago #

    There are lines for mod_rewrite in your .htaccess file which go like this:

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    the -f one tests if the path is a file, and the -d tests if it is a directory. So a folder name will override a permalink

  4. whooami
    Member
    Posted 6 years ago #

    still a bad idea, especially on a nix server :)

  5. subirghosh
    Member
    Posted 6 years ago #

    there is always no harm in trying. one can always give it a shot and see what happens. catchline being: NO HARM.

    ochiba: that is what i wanted to know actually: what OVERRIDES what. since foldername will override permalink, i can try to find a different way of managing filenames :)

  6. moshu
    Member
    Posted 6 years ago #

    First of all: a category permalink should be: example.com/category/sidetrack - you can replace the word "category" with something else, but omitting it will make your life even more compliacted and on the long run is a call for disaster...

Topic Closed

This topic has been closed to new replies.

About this Topic