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.
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.
What does your .htaccess file have in it? When you enable pretty urls, the .htaccess might look like:
there is no .htaccess file in the root - is that why?
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!
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!
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.
EDIT: Just cleared cache - now it works. lol.... Thanks man. I thought a hard refresh allways was enough.. guess not.
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
Rony
There is only a index.php in the root