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>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...