Sunday, February 19, 2017

Website is available again

Finally  my web site is available again! It took a while since i had to involve the support center of snafu. But i have to admit most of the problem have been on my side, starting from the specific domains which are included in my hosting package and some rewriting rules which simply did not
work on the the server.

I guess the domain issue is not so interesting since it simply requires reading of the offer and discussion with the support team which connected my domain to one of the pleks instances.Adfter my domsin issue has been setteled I copied my web page to the server into the right directory. And it
did not work :-( Since my website is based on GetSIMple a small PHP based Contents magement system. This system stores the webpages on the server in an xml like format. In order to show such a page on th browser a file index.php has to be invoked. This is done by a so called URL rewrite rule.
It converts the request for a file called overview into index.html?id=overview. The original rule can be found at the end of the .htaccess file shown below. Actually this is not needed since GetSImple will link to new pages using indes.html?di=next page. After deleting the .htaccess file everything works fine!

AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
    Order allow,deny
    Deny from all
    Satisfy All
<Files sitemap.xml>
  Order allow,deny
    Allow from all
    Satisfy All

RewriteEngine on
# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /

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

# new rewrite
##old RewriteRule /?([A-Za-z0-9_-]+)/?/index.php?id=$1 [QSA,L]