WordPress.org

Ready to get started?Download WordPress

Forums

404 issue and invisible directories (7 posts)

  1. thelaughingman
    Member
    Posted 9 years ago #

    I'm still kinda new to how WordPress and Apache work so go easy since I'm sure this is an easy question. /var/www/prinny is where I installed WP to, my domain is http://www.prinny.org. I want to make it so when I go to http://www.prinny.org/misc I can access files in that directory. Currently i have a 'misc' directory in my /var/www/prinny directory, but when I go to my domain/misc it just reloads my main page. It does this when you type in any incorrect directory or file.

    Any ideas why this is happening? I'm not sure if its how the 404's work with the theme I am using or if I need to mess with my .htaccess and httpd.conf files.

    Thanks for any help

  2. Kafkaesqui

    Posted 9 years ago #

    Could have something to do with this:

    <frameset rows="100%,*" border="0">
    <frame src="http://69.164.98.138:81" frameborder="0">
    <frame frameborder="0" noresize>
    </frameset>

    I get to your misc/ directory just fine this way:

    http://69.164.98.138:81/misc/

  3. thelaughingman
    Member
    Posted 8 years ago #

    That's weird. I don't see that as the source of the 404' d page, but I don't see it any any of my source code. When I change my theme it does the same thing, what could be causing this? Is it something in WP?

  4. Kafkaesqui

    Posted 8 years ago #

    No, it has to do with the way your site is set up. This:

    http://69.164.98.138:81/

    is your site url, whereas this:

    http://www.prinny.org/

    is currently just a frames document the loads 69.164.98.138:81 in a single frame. For something like prinny.org/misc to work, the server would have to map uris to point to 69.164.98.138.

    This is not a WordPress problem.

  5. thelaughingman
    Member
    Posted 8 years ago #

    Okay, I understand that now, but I have to use a different port then 80 because of my ISP.

    When I remove the :81 from my URI's it screws up the site, so is there anyother way I can ge this to work?

    Thanks again for the help.

  6. Kafkaesqui

    Posted 8 years ago #

    It has nothing to do with the port. It's that "http://www.prinny.org" is not "69.164.98.138". As far as the lookup appears to show (click the links), they're not even on the same network.

    A link to "www.prinny.org/misc/" fails because the misc directory is on "69.164.98.138" and not "www.prinny.org". For it to work, uri paths on "www.prinny.org" need to be mapped to "69.164.98.138:81". This would have to be resolved through your host.

  7. jaseone
    Member
    Posted 8 years ago #

    I don't think you will be able to do what you are trying to accomplish with that setup, you seem to be using one of those services that allow to you point port 80 of one of your domains to another port to get around the limitation of using port 80 by your ISP. However that will only ever point it at one page and won't function as a proper domain name at all, although I think there might be some premium services out there that allow you to do so.

    I'd highly recommend you sign up for some hosting for running a live site and just leave that setup for testing purposes, you can get hosting from A Small Orange for as little as $30 a year.

Topic Closed

This topic has been closed to new replies.

About this Topic