Jump to content

Recommended Posts

Posted

Hi. I don't seem to get the following .htaccess file to work on heliohost. Could there be some misconfigurations?

# In local: in httpd/conf/projects/pms.conf :
# alias /pms F:/projects/pms/trunk/..../webroot/

######################################
# Root .htaccess
# Case 1: When installing in root but without setting DOCUMENT_ROOT, e.g, http://www.example.com/ :
# In the root above /app (say, public_html)
# -->
# Options +FollowSymLinks # needed for some hosts, especially GoDaddy
#<IfModule mod_rewrite.c>
#	RewriteEngine on
#	RewriteBase	/app/
#	RewriteRule	^$	webroot/	[L]
#	RewriteRule	(.*) webroot/$1	[L]
# </IfModule>
# <--
# Case 2: When installing in folder next to root, e.g., http://www.example.com/pms/ :
# In the root above /app (say, public_html/pms/)
# -->
#<IfModule mod_rewrite.c>
#    RewriteEngine on
#    RewriteBase	/pms/app/
#    RewriteRule    ^$    webroot/    [L]
#    RewriteRule    (.*) webroot/$1    [L]
# </IfModule>

########################################
# This .htaccess
# Case 1: When installing in root but without setting DOCUMENT_ROOT, e.g, http://www.example.com/ :
#<IfModule mod_rewrite.c>
#	RewriteEngine on
#	RewriteBase	/app/
#	RewriteRule	^$	webroot/	[L]
#	RewriteRule	(.*) webroot/$1	[L]
# </IfModule>
# Case 2: When installing in folder next to root, e.g., http://www.example.com/pms/ :
#<IfModule mod_rewrite.c>
#    RewriteEngine on    
#    RewriteBase	/pms/app/
#    RewriteRule    ^$    webroot/    [L]
#    RewriteRule    (.*) webroot/$1    [L]
# </IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase	/demo/app/
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
 </IfModule>

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...