0

I have a site built in CodeIgniter that works totally fine on my localhost, but upon migrating site to an online server on a subdomain it gives "page isn't working, http://sub.domain.com is unable to handle the request.HTTP error 500"

I also changed base_url from localhost/school/ to sub.domain.com, and database credentials are also fine.

Here is my htaccess code:

enter image description here

halfer
  • 19,824
  • 17
  • 99
  • 186
Haris Hafeez
  • 11
  • 1
  • 3

1 Answers1

-1
RewriteEngine on

RewriteCond %{HTTP_HOST} ^(.*)\.domain\.com

RewriteRule ^(.*)$ http://domain.com/subdomains/%1/$1 [L,NC,QSA]
Amit Verma
  • 40,709
  • 21
  • 93
  • 115
Rahul Prajapati
  • 426
  • 1
  • 4
  • 12