I have directory structure on my production server as:
public_html/www # www.digicreek.com
public_html/educonnect # educonnect.digicreek.com
public_html/educonnect/.htaccess # Same as local(shown below)
public_html/.htaccess # contains only one line (RewriteBase/)
Locally my htaccess looks like this:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
Locally I can access: http://localhost/educonnect/profile
instead of : http://localhost/educonnect/index.php/profile
.
But using same htaccess on my server;
I can not access: http://educonnect.digicreek.com/profile
However, this works: http://educonnect.digicreek.com/index.php/profile
What is wrong with the routing? Please help.
Do I need to make any changes to htaccess for working with subdomains?