Next problem!

antczak_andrzej1464

New Member
YetiShare User
Apr 29, 2012
11
0
0
If you are setting in config.inc.php define ("_CONFIG_SITE_HOST_URL" domain as domain.com and upload the file everything works fine, but if I type in the browser address www.domain.com upload does not work. And vice versa.
script has a problem with where the cfg is set to define ("_CONFIG_SITE_HOST_URL" www.domain.com, and the user typed in the browser just domain.com script will not work and do not show links to the file. can someone check it.
And the problem when you delete a file from the admin site, the file is not deleted from the server, so in a short time, the server will be filled up files that should not already be on it.
 

antczak_andrzej1464

New Member
YetiShare User
Apr 29, 2012
11
0
0
i add to .htacccess
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

:p

problem gone
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Thanks for posting your resolution for others, I'm sure it'll come in handy.

Regards,
Adam.