SkaDate / Oxwall Troubleshooting: 404 not found error when using software under temporary URL

Sample error: 404 not found. The server can not find the requested page: http://www.sitename.com/blabla (port 80)

Known to happen when: software is used (usually fresh installation/migration) under temporary URL.

Temporary URL format: http://server.domain.com/~cpanelusername/ .

Error usually appears on all site pages except ones that refer to direct file. URL: http://server.domain.com/~cpanelusername/index.php will work , but http://server.domain.com/~cpanelusername  will results in 404 not found error.

Admin Panel accessibility: Not accessible.

Possible Solution:

1. open ow_includes/config.php file >> make sure that your temporary URL is used for OW_URL_HOME line.

2. open main .htaccess file and add following rewrite rule right after “RewriteEngine On” line:

RewriteBase /~cpanelusername

11 thoughts on “SkaDate / Oxwall Troubleshooting: 404 not found error when using software under temporary URL

  1. Hi,

    I followed your reply to “page not found – 404” question. I have a similar question when I sent event data from javascript/ajax to a custom PHP snippet on the server. The status code: 404 was returned by XMLhttpRequest object. My PHP page is on server! My question is how can I get skadate to recognise my PHP page? Will the suggestions you made for similar problem apply to me? Or What suggestions do you have for my specific problem?

    Many thanks,
    Folapitan

    Like

    1. I think that in your case all you will need to do is to add an additonal rewrite rule for your custom .php page in .htaccess file. Rule you will need to add is:

      RewriteCond %{REQUEST_URI} !/yourfilenamehere\.php

      Add it after: RewriteCond %{REQUEST_URI} !^/index\.php

      Like

      1. Hi Jane,

        Thanks alot for this suggested snippet. I’m still trying it with .htaccess, the first file in my document root. I will update you about any success.

        Many thanks,
        Folapitan

        Liked by 1 person

  2. Hi Jane,

    I thought to get back to you on my progress with the snippet. As it stands, I have not been able to run my custom.php with the snippet. There are no errors, is just that Skadate has some higher rules somewhere preventing the use of foreign php script! Here is my .htaccess modification from the document root:

    Options +FollowSymLinks
    RewriteEngine On

    AddEncoding gzip .gz
    AddEncoding gzip .gzip

    ForceType text/javascript

    ForceType text/css

    RewriteCond %{REQUEST_URI} !^/index\.php
    RewriteCond %{REQUEST_URI} !/ow_ds_script/custom\.php
    RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
    RewriteCond %{REQUEST_URI} !/ow_updates/
    RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
    RewriteCond %{REQUEST_URI} !/e500\.php
    #RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
    RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
    RewriteRule (.*) index.php

    Liked by 1 person

    1. I can see that you have added RewriteCond %{REQUEST_URI} !/ow_ds_script/custom\.php

      Is ow_ds_scrip is a custom directory as well? If yes, you must also add a rewrite rule for whole directory first.
      Like will look like

      RewriteCond %{REQUEST_URI} !/ow_ds_script/

      So overall you should have 2 custom lines. One for whole directory and second one for file.

      Like

  3. Hi Jane, Thanks for the quick response. I have a custom directory as you’ve noticed. So I added as below:


    ...
    RewriteCond %{REQUEST_URI} !^/index\.php
    RewriteCond %{REQUEST_URI} !/ow_ds_script/
    RewriteCond %{REQUEST_URI} !/ow_ds_script/custom\.php
    RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
    ...

    I got the same result – 404 error! Also, I have tried just the custom.php without directory, no luck.

    Any other suggestions please? I appreciate your time.

    Regards, Folapitan

    Like

    1. Dear Folapitan,

      Unfortunately at this stage I am afraid that there is not much I can help you with without acutally having access to your server. If you feel safe providing:
      – your site URL
      – your FTP details

      you can send them to oxskatips@gmail.com .

      Like

      1. Thanks Jane for the support and advice. I have actually decided to purchase a one-time support service from skadate. Hopefully, they will point me in the right direction. Otherwise, I will contact you again. Cheers, Folapitan.

        Like

    2. Hi Jane, Hope you well!

      Just to let you know. I solved the custom.php issue like below:

      In document root, I put custom.php. Then added your suggestion to before last line. Voila! It worked!!


      RewriteCond %{REQUEST_URI} !^/index\.php
      RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
      RewriteCond %{REQUEST_URI} !/ow_updates/
      RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
      RewriteCond %{REQUEST_URI} !/e500\.php
      RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
      RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
      RewriteCond %{REQUEST_URI} !/custom\.php
      RewriteRule (.*) index.php

      Thanks for sheding light 🙂

      Liked by 1 person

Leave a comment