Note that there are some explanatory texts on larger screens.

plurals
  1. POMain domain with codeigniter, subdomain without codeigniter
    primarykey
    data
    text
    <p>I have uploaded a CodeIgniter site to <code>public_html</code> folder on server, which works properly.</p> <p><a href="http://my-site-name-here.com" rel="nofollow">http://my-site-name-here.com</a></p> <p>Now, I have created a subdomain "<code>sub</code>" for which there is a directory in <code>public_html</code> named "<code>sub</code>". I have uploaded a non-CodeIgniter application in that folder.<br> If I try to go to <a href="http://sub.my-site-name-here.com" rel="nofollow">http://sub.my-site-name-here.com</a>, it gives me "<code>500 Internal server error</code>".<br> And if I try to go to <a href="http://my-site-name-here.com/sub" rel="nofollow">http://my-site-name-here.com/sub</a>, it gives me CodeIgniter response for page not found.</p> <p>How can I set subdomain that does not use CodeIgniter?</p> <p><strong>UPDATE:</strong></p> <p>I am trying different htaccess rewrites. Current .htaccess content is:</p> <pre><code>RewriteEngine on RewriteBase / #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|img/current|css/current|js/current|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] RewriteCond %{HTTP_HOST} ^(www\.)?spiders\.haitspirit\.com$ RewriteCond %{REQUEST_URI} !^/spiders RewriteRule ^(.*)$ /spiders/$1 [L] </code></pre> <p><strong>UPDATE 2:</strong></p> <p>I have also moved all CodeIgniter directories and files (except index.php) into a directory called "<code>main</code>" and edited <code>index.php</code> accordingly. Still main site works, subdomain doesnt.</p> <p><strong>UPDATE 3:</strong></p> <p>I tried same thing in <code>localhost</code> and now able to get server error logs. Error shows <strong>it has reached maximum redirect loops.</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload