Ordinary pages outside of Wordpress

Hi
I am helping a client create an ordinary HTML page that they can show on their FB page. The client has a WP site running on their ISP Server. It seems as that WP has control over all the pages in its database and if I type in a legitimate url for a newly created HTML Test Page it comes back with a WP Site 404 error.

How do I host ordinary page on this server outside of WP?

kind regards & thanks in advance.
Richard.

  • Rupok

    Hi Richard,

    It's possible to show HTML files from inside a WordPress instance. For doing that, please upload/create your HTML files in the root directory of your site. WordPress won't rewrite the URL structure for files in the root directory.

    So if e.g. you need "static.html" , you can safely upload it on your root folder with the same name and can access from your browser, WordPress will have nothing to do with it. You can access that page by going to "http://yoursite.com/static.html". Replace "yoursite.com" with your actual domain.

    I believe, this will resolve your issue. Please let us know if you have any confusion or any further query. We will be glad to help.

    Have a nice day. Cheers!
    Rupok

  • Rupok

    Hi Richard,

    Glad to see that you could figure out how to attach images.

    From your screenshot, it seems that "public_html" is your domain root directory. So if you create or put any html file inside the "public_html" directory, you will be able to access it. So if you put a "test.html" file inside the "public_html" directory, you can access that file by going to "http://yoursite.com/test.html". Please replace "yoursite.com" with your actual domain.

    Please let us know if it doesn't work of if you still have any confusion. We will be glad to help.

    Have a nice day. Cheers!
    Rupok

  • Richard

    Hi Rupok,

    I am desperate and don't know where to turn. Boo hoo hoo:cry:
    I cannot seem to get my boring old html page to show its' images when accessed by https
    My page is https://www.babyboomerscaravanhire.com.au/BBCHAdv3.html
    When I try just to access one of the images I get a 404 error within the WP frame see https://www.babyboomerscaravanhire.com.au/public_html/IMG_0109.jpg or without the /public_html

    I called my ISP Tech Support, but they were at a loss.

    Hummm - any clues?

    Best wishes,
    Richard.

  • Rupok

    Hi Richard,

    Can you please make sure you have those images in the root directory of your site? I mean where the HTML pages are stored? I don't think so because I inspected your HTML page code and tried to load one image from the root directory, it was not loaded. So I think, your images are not stored there.

    However, this thread is going too long and killing your valuable time. If you want, we can check the total thing and try to fix this for you. But for doing this, we will need your FTP login access. Can you send me message with FTP access credentials through our secure contact form here: https://premium.wpmudev.org/contact/ so we can check your code, image location and fix all these for good?

    Subject: "Attn: Rupok"
    - FTP Username
    - FTP Password
    - FTP Host
    - Link back to this thread for reference
    - Any other relevant URLs

    Select "I have a different question" for your topic. This and the subject line ensure that it gets assigned to me.

    I'm looking forward to hearing from you and resolving this issue as soon as possible.

    Have a nice day. Cheers!
    Rupok

  • Rupok

    Hi Richard,

    Thanks for sending your FTP credentials. I've logged in to check the issue. Surprising thing is, images from the root directory of your site are not being served. I don't know what's causing this but this is not standard behavior. I just uploaded an image (suppose, pic.jpg) in the root directory of my test site and then went to "http://mysite.com/pic.jpg" in my browser, the image loaded without any issue.

    To find out the reason why this is behaving such on your site, I checked your ".htaccess" file and found many lines of code which doesn't come with default WordPress .htaccess file. Can you please take a backup of your current .htaccess file and then replace everything there with the following?

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Please let us know how it goes. If it doesn't resolve the issue, we will be glad to investigate further.

    I'm looking forward to hearing from you and resolving this issue as soon as possible.

    Have a nice day. Cheers!
    Rupok

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.