Welcome Guest, Not a member yet? Register   Sign In
subdomain issue
#1

[eluser]virtualgadjo[/eluser]
hi,

sure this isn't a bug but something i do not understand

i'm trying to install a website on another website subdomain, in the htaccess file i've added the line
Code:
RewriteCond %{HTTP_HOST} !^subdomain.thedomain.com$
without which i had a 500 error
with it, i can see the website firstpage but, as soon as it comes to a controller url i get a 404 error
for example subdomain.thedomain.com/login (which is my defalt controller and the form action
(of course, tested, all and everything works like a charm locally on my virtualhost)
my whole htaccess
Code:
php_flag register_globals Off

RewriteEngine on

RewriteCond %{HTTP_HOST} !^subdomain.domain.com$
RewriteCond $1 !^(index\.php|assets|files|modules|robots\.txt)

RewriteRule ^(.*)$ index.php/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ $1 [L,R=301]

#ErrorDocument 404 /pagenontrouvee

it really seems to be a subdomain issue i do not understand, have i got to change things in the config/index or route files to have it work or is it an htaccess issue

any idea would be warmly welcome Smile

thanks a lot




Theme © iAndrew 2016 - Forum software by © MyBB