localhost to ISP Host
Permalink
So I've moved my site from my local machine to HostGator, which I've done before with no problem. Only this time I have this message:
<?php
require('concrete/dispatcher.php');
What have I done wrong?
<?php
require('concrete/dispatcher.php');
What have I done wrong?
Wow I was told at hostgator, that it is out of scope to support sites being moved from local machine to them. Which they have helped in the past, it's all about who you get...
Anyhow, I made my own .htaccess file I think that's where the problem lies, let me know if this looks good to you.
DirectoryIndex index.php
AddType x-mapp-php5 .php
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
I agree that PHP is not executing.
Anyhow, I made my own .htaccess file I think that's where the problem lies, let me know if this looks good to you.
DirectoryIndex index.php
AddType x-mapp-php5 .php
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
I agree that PHP is not executing.
Just use what's recommended when you enable pretty urls, if the site is installed in your root directory:
<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 [L]
</IfModule>
<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 [L]
</IfModule>
It's not though, I now have it hosted.
I'm sorry, I see what your saying
I've been up for way to long, getting a bit loopy.
I don't remember if I had pretty url's enabled.
If not I'll enable them and redo the copy and FTP.
I've been up for way to long, getting a bit loopy.
I don't remember if I had pretty url's enabled.
If not I'll enable them and redo the copy and FTP.
I do not have pretty url's enabled :(
Drop me a PM.
So, I now have pretty url's enabled. I made the .htaccess file as you mentioned. and I have the same issue.
It just states:
<?php
require('concrete/dispatcher.php');
I'm lost
It just states:
<?php
require('concrete/dispatcher.php');
I'm lost
1. Check the integrity of the index.php - does it match the one of a clean download.
2. Is your index file definately .php (eg not .html)
3. Drop me a PM and I'll have a look for you or e-mail HostGator and explain that your index file isn't executing PHP.
Hope this helps.