Title: java script not working in Subfolder in wordpress root, a .htaccess issue
Last modified: August 21, 2016

---

# java script not working in Subfolder in wordpress root, a .htaccess issue

 *  Resolved [yguvvala](https://wordpress.org/support/users/yguvvala/)
 * (@yguvvala)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/java-script-not-working-in-subfolder-in-wordpress-root-a-htaccess-issue/)
 * 0
    down vote favorite I have wordpress installation on root folder. and i have
   tool with java script on a subfolder called smart inside the root folder.
 * in my site [http://www.jump2health.com/smart](http://www.jump2health.com/smart),
   the page doesn’t show up all the java script it is supposed to. where as i have
   uploaded it in a different place ([http://billmath.com/smart/](http://billmath.com/smart/))
   and it works as expected. when i rename (remove) the .htaccess file which is 
   in root the java script works as expected, however this stops my word press site
   from working normally.
 * My htaccess file in wordpress installation is as follows:
 *     ```
       ## EXPIRES CACHING ##
       <IfModule mod_expires.c>
       ExpiresActive On
       ExpiresByType image/jpg "access 1 year"
       ExpiresByType image/jpeg "access 1 year"
       ExpiresByType image/gif "access 1 year"
       ExpiresByType image/png "access 1 year"
       ExpiresByType text/css "access 1 month"
       ExpiresByType application/pdf "access 1 month"
       ExpiresByType text/x-javascript "access 1 month"
       ExpiresByType application/x-shockwave-flash "access 1 month"
       ExpiresByType image/x-icon "access 1 year"
       ExpiresDefault "access 2 days"
       </IfModule>
       ## EXPIRES CACHING ##
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 * I dont have any .htaccess file inside my subfolder.
 * after extensive search tried every thing that I found on google search results
   with no success I tried adding a .htaccess file inside subfolder with:
 *     ```
       <IfModule mod_rewrite.c>
          RewriteEngine off
       </IfModule>
       That didn't help either
       ```
   
 * I tried ignoring the folder from main htccess file in root which didn’t work.
 * I tried many more please help me where is the catch
 * I am new to wordpress

Viewing 1 replies (of 1 total)

 *  Thread Starter [yguvvala](https://wordpress.org/support/users/yguvvala/)
 * (@yguvvala)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/java-script-not-working-in-subfolder-in-wordpress-root-a-htaccess-issue/#post-3968365)
 * The were some changes i needed to do for .htaccess file and recreated the file.
   it works now

Viewing 1 replies (of 1 total)

The topic ‘java script not working in Subfolder in wordpress root, a .htaccess issue’
is closed to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [subfolder](https://wordpress.org/support/topic-tag/subfolder/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 1 participant
 * Last reply from: [yguvvala](https://wordpress.org/support/users/yguvvala/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/java-script-not-working-in-subfolder-in-wordpress-root-a-htaccess-issue/#post-3968365)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
