hi,
I have a problem with htaccess…
I searched on google, try almost all but i can’t able to figure out the solution…
I have two domains.
primarydomain is developed in yiiframework.
I can access to…
primarydomain.com, subdomain.com both on laptop and mobile
but i can’t access upanel of my primarydomain.com
all the folder of primarydomain is in root folder + the subdomain folder
.
I have htacess for primarydomain, subdomain and adminpanel of primarydomain…
so here is the htacess of primarydomain…
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
##BEGIN MOBILE (do not edit below this line)
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ((.*iPhone.*)|(.*iPod.*)|(.*BlackBerry.*)|(.*Android.*Mobile.*)|(.*Windows\ CE.*)|(.*IEMobile.*)|(.*Opera\ Mini.*)|(.*Opera\ Mobi.*))
RewriteCond %{HTTP_COOKIE} !dm_show_classic
RewriteCond %{QUERY_STRING} !no_redirect=true [NC]
RewriteCond %{REQUEST_URI} ^/_dm/s/ [NC,OR]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif|png|css|js|txt|ico|pdf|bmp|tif|mp3|wav|wma|asf|mp4|flv|mpg|avi|csv|doc|docx|xls|xlsx|ppt|pptx|zip|rar|tar|gz|dmg|iso)$ [NC]
RewriteBase /
##END MOBILE
if i remove below ##BEGIN MOBILE till ##END MOBLIE…
i can access to upanel of primarydomain, primarydomain, subdomain BUT i can’t access subdomain from mobile/iphone…
also
if i change RewriteBase / to RewriteBase /upanel
upanel of primary domain works but got error in subdomain…
ok now here is the htacess of my subdomain…
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?key=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?key=$1
and here is htacess for upanel of primarydomain
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
I’m not getting server error I’m getting this error Unable to resolve the request “upanel/site/login”.
urlmanger is well configured .
thanks