php - .htaccess preventing subdirectory access -


i have drupal site , needed second site coded purely in html/css/js up. created folder second site , subdomain point it. however, .htaccess file causing 403 forbidden error while trying access subdomain. if delete or rename file .htaccess.old, subsite work drupal site won't. mean, home page loads, links redirect 404 not found.

i know nothing .htaccess , not sure how troubleshoot.

here's file:

# # apache/php/drupal settings: #  # protect files , directories prying eyes.   # don't show directory listings urls map directory. options -indexes  # follow symbolic links in directory. options +followsymlinks  # make drupal handle 404 errors. errordocument 404 /index.php  # force simple error message requests non-existent favicon.ico. <files favicon.ico>   # there no end quote below, compatibility apache 1.3.   errordocument 404 "the requested file favicon.ico not found. </files>  # set default handler. directoryindex index.php  # override php settings. more in sites/default/settings.php # following cannot changed @ runtime.  # php 4, apache 1. <ifmodule mod_php4.c>   php_value magic_quotes_gpc                0   php_value register_globals                0   php_value session.auto_start              0   php_value mbstring.http_input             pass   php_value mbstring.http_output            pass   php_value mbstring.encoding_translation   0 </ifmodule>  # php 4, apache 2. <ifmodule sapi_apache2.c>   php_value magic_quotes_gpc                0   php_value register_globals                0   php_value session.auto_start              0   php_value mbstring.http_input             pass   php_value mbstring.http_output            pass   php_value mbstring.encoding_translation   0 </ifmodule>  # php 5, apache 1 , 2. <ifmodule mod_php5.c>   php_value magic_quotes_gpc                0   php_value register_globals                0   php_value session.auto_start              0   php_value mbstring.http_input             pass   php_value mbstring.http_output            pass   php_value mbstring.encoding_translation   0  </ifmodule>  # requires mod_expires enabled. <ifmodule mod_expires.c>   # enable expirations.   expiresactive on    # cache files 2 weeks after access (a).   expiresdefault a1209600    <filesmatch \.php$>     # not allow php scripts cached unless explicitly send cache     # headers themselves. otherwise scripts have overwrite     # headers set mod_expires if want caching behavior. may     # fail if error occurs in bootstrap process, , may cause     # problems if non-drupal php file installed in subdirectory.     expiresactive off   </filesmatch> </ifmodule>  # various rewrite rules. <ifmodule mod_rewrite.c>   rewriteengine on    rewritecond %{the_request} /thelivingeffect [nc]   rewriterule ^ - [l]    # if site can accessed both , without 'www.' prefix,   # can use 1 of following settings redirect users preferred   # url, either or without 'www.' prefix. choose 1 option:   #   # redirect users access site 'www.' prefix,   # (http://example.com/... redirected http://www.example.com/...)   # adapt , uncomment following:   # rewritecond %{http_host} ^example\.com$ [nc]   # rewriterule ^(.*)$ http://www.example.com/$1 [l,r=301]   #   # redirect users access site without 'www.' prefix,   # (http://www.example.com/... redirected http://example.com/...)   # uncomment , adapt following:   # rewritecond %{http_host} ^www\.example\.com$ [nc]   # rewriterule ^(.*)$ http://example.com/$1 [l,r=301]    # modify rewritebase if using drupal in subdirectory or in   # virtualdocumentroot , rewrite rules not working properly.   # example if site @ http://example.com/drupal uncomment ,   # modify following line:   # rewritebase /drupal   #   # if site running in virtualdocumentroot @ http://example.com/,   # uncomment following line:   # rewritebase /    # rewrite urls of form 'x' form 'index.php?q=x'.   rewritecond %{request_filename} !-f   rewritecond %{request_filename} !-d   rewritecond %{request_uri} !=/favicon.ico   rewriterule ^(.*)$ index.php?q=$1 [l,qsa] </ifmodule> 

edit: url used try access subfolder www.thelivingeffect.mysite.com

just below rewriteengine on line add line skip subfolder rewrite rules current .htaccess:

rewritecond %{http_host} ^thelivingeffect\. [nc,or] rewritecond %{the_request} /thelivingeffect [nc] rewriterule ^ - [l] 

Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -