Getting a site live

Permalink
Hello,

Im trying to get a website made in concrete5 live. I have moved my site onto the root folder and chang my site.php

define('BASE_URL', 'http://www.mysite.dk');

But when i got to the adress it stills try to targethttp://www.mysite.dk/index.html... and not the index.php file... dont understand why.

this is my full site.php

<?php
define('DB_SERVER', 'xxx');
define('DB_USERNAME', 'xxx');
define('DB_PASSWORD', 'xxx');
define('DB_DATABASE', 'xxx');
define('BASE_URL', 'http://www.mysite.dk');
define('PASSWORD_SALT', 'x8JlVFSpOOn5w3Z36HqEIac5CUgsyH9Ik2L6nA22OS9qqcO4KkEQSB9NNUkGz8lL');

Any help is appreciated.

 
planist1 replied on at Permalink Reply
planist1
What does your .htaccess file have in it? When you enable pretty urls, the .htaccess might look like:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule ^(.*)/$ index.php/$1 [L]
</IfModule>
berteldk replied on at Permalink Reply
there is no .htaccess file in the root - is that why?
juliandale replied on at Permalink Best Answer Reply
juliandale
Make sure that there are no redirects within the hosting, and allow index.php in the list of default documents.

You could also rename index.html to index_old.html and see if the hosting picks up the index.php as the next default document to look for.

Also, you may have the site cached on your machine, so try rebooting your router, browsing the site on a different network or browsing the site over 3G on your mobile phone. You may find that it has been working all the time but you just can't see it on your local network!
berteldk replied on at Permalink Reply
I get an 404 error - cause there is no index.html site... still it try to go to one.

EDIT: Just cleared cache - now it works. lol.... Thanks man. I thought a hard refresh allways was enough.. guess not.
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
In general if your Root folder have both index.html & index.php, it calls the index.html first. This is the general convention. So if you would like to overcome this, just rename the index.html file as @juliandale said.

Rony
berteldk replied on at Permalink Reply
There is only a index.php in the root