Page 1 of 1

The page cannot be found!

Posted: May 16th, '17, 00:15
by TimNHocking
If I try to access a link on my home page I get:

The page cannot be found!
The page you have requested cannot be found on this server.

I would imagine I've changed something but don't know what.

Re: The page cannot be found!

Posted: May 16th, '17, 02:09
by ne_moj
Hello TimNHocking

The problem still exists? I see the homepage.

Re: The page cannot be found!

Posted: May 16th, '17, 10:42
by TimNHocking
Yes. The home page seems OK but if you click on a button such as Rooms, Gallery, ect. it cannot find the page.

Re: The page cannot be found!

Posted: May 17th, '17, 05:02
by ne_moj
Check if the .htaccess file exists, if it exists, check the mod_rewrite module is enabled on the server. If mod_rewrite is enabled, there may be a problem with the .htaccess file, check if there are entries in this file

Code: Select all

########## Begin - SEO Links Section
## If you works with SEO links option uncomment the operations listed below
## redirection on pages
    RewriteRule ^pages/([0-9]+)/(.*).html$ index.php?page=pages&pid=$1 [L]
    RewriteRule ^pages/(.*).html$ index.php?page=pages&system_page=$1 [L]
    RewriteRule ^news/([0-9]+)/(.*).html$ index.php?page=news&nid=$1 [L]
    RewriteRule ^news/(.*).html$ index.php?page=news [L]
    RewriteRule ^hotels/([0-9]+)/(.*).html$ index.php?page=hotels&hid=$1 [L]
    RewriteRule ^rooms/([0-9]+)/(.*).html$ index.php?page=rooms&room_id=$1 [L]

    ## redirect for language
    RewriteRule ^([a-zA-Z][a-zA-Z])/index.php$ index.php?lang=$1 [L]
    RewriteRule ^([a-zA-Z][a-zA-Z])/?$ index.php?lang=$1 [L]
    RewriteRule ^([a-zA-Z][a-zA-Z])/pages/([0-9]+)/(.*).html$ index.php?page=pages&pid=$2&lang=$1 [L]
    RewriteRule ^([a-zA-Z][a-zA-Z])/pages/(.*).html$ index.php?page=pages&system_page=$2&lang=$1 [L]
    RewriteRule ^([a-zA-Z][a-zA-Z])/news/([0-9]+)/(.*).html$ index.php?page=news&nid=$2&lang=$1 [L]
   RewriteRule ^([a-zA-Z][a-zA-Z])/hotels/([0-9]+)/(.*).html$ index.php?page=hotels&hid=$2&lang=$1 [L]
    RewriteRule ^([a-zA-Z][a-zA-Z])/rooms/([0-9]+)/(.*).html$ index.php?page=rooms&room_id=$2&lang=$1 [L]
    ## redirect for currency
    RewriteRule ^([a-zA-Z][a-zA-Z][a-zA-Z])/index.php$ index.php?currency=$1 [L]
    RewriteRule ^([a-zA-Z][a-zA-Z][a-zA-Z])/?$ index.php?currency=$1 [L]
    RewriteRule ^([a-zA-Z][a-zA-Z][a-zA-Z])/pages/([0-9]+)/(.*).html$ index.php?page=pages&pid=$2&currency=$1 [L]
    RewriteRule ^([a-zA-Z][a-zA-Z][a-zA-Z])/pages/(.*).html$ index.php?page=pages&system_page=$2&currency=$1 [L]
    RewriteRule ^([a-zA-Z][a-zA-Z][a-zA-Z])/news/([0-9]+)/(.*).html$ index.php?page=news&nid=$2&currency=$1 [L]
   RewriteRule ^([a-zA-Z][a-zA-Z][a-zA-Z])/hotels/([0-9]+)/(.*).html$ index.php?page=hotels&hid=$2&currency=$1 [L]
    RewriteRule ^([a-zA-Z][a-zA-Z][a-zA-Z])/rooms/([0-9]+)/(.*).html$ index.php?page=rooms&room_id=$2&currency=$1 [L]
########## End - SEO Links Section

Re: The page cannot be found!

Posted: May 17th, '17, 16:44
by TimNHocking
Thank you for your help. After contacting the hosting service this is their response:

We've resolved the problem with your app by inserting the following code into your .htaccess file:

RewriteBase /

It works fine now.