php - How I make a htacces for he redirect my application to my subfolder from my domain? -
excuse low english.
i have zend framework project , need upload in server. can’t ssh acces, ftp. there many projects in public_html (htdocs or www) of server, project needs own folder.
how make htacces redirect application subfolder domain??
my structure:
public_html/.htaccess public_html/project/ application public_html/project/library public_html/project/public ...
thanks!
try code in .htaccess, replace "yourdomain.com" domain , "foldername" website folder name.
rewriteengine on rewritecond %{http_host} ^(www.)?yourdomain.com$ rewriterule ^(/)?$ foldername [l]
for other information on can .htaccess file recommend following site:
Comments
Post a Comment