Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9148817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:22:36+00:00 2026-06-17T11:22:36+00:00

I have a website and let’s call it example.com. I also use a htaccess

  • 0

I have a website and let’s call it example.com.
I also use a htaccess which is long and I am posting a part of it

<filesMatch "\.(flv|gif|jpg|jpeg|png|ico|swf)$">
    Header set Cache-Control "max-age=7257600"
</filesMatch>
<filesMatch "\.(js|css|pdf|txt)$">
    Header set Cache-Control "max-age=604800"
</filesMatch>
<filesMatch "\.(html|htm)$">
    Header set Cache-Control "max-age=600"
</filesMatch>

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css

How can I make the htaccess which is uploaded in example.com/.htaccess not affect my forum which is located in example.com/forum

I am asking for any code like this

<ifdirectory !"/forum">

//the htaccess code here

</ifdirectrory>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:22:39+00:00Added an answer on June 17, 2026 at 11:22 am

    To allow execution of rewrite rules from parent .htaccess (htaccess from parent folder), you need to explicitly allow it (Apache will treat rewrite rules in current .htaccess as the only one that need to be executed, as long as rewritten URL remains in the same subfolder).

    You need to add this line to your .htaccess in sub-folder:

    RewriteOptions inherit
    

    Apache manual: http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriteoptions

    This is a copy of a post found here, no credit to me. Look to your right, in the sidebar, there are plenty of similar topics 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a website at example.com It contains two local views, Database
I have a website(for example: test.com), which has 2 kinds of subdomains: test.com static_${version}.test.com
I have a website let's say www.example.com and I have a subdomain something.example.com Both
We have a website for a product (let's call it ourproduct) that's on ourproduct.com.
I have a website in which i use the Facebook API to let users
I have an website. Let's call it http://www.domain.com . Now, on this domain.com I
Let's say I have a website with domain: www.example.com If I set a cookie
So, let's start with situation. I have a website which uses Jquery 1.4.2 as
I have two websites: http://example.com http://example.com/sub I have a page, let's say: http://example.com/sub/page1 Is
I have a website with only a wordpress(let's call it blog) application in it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.