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

  • SEARCH
  • Home
  • 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 8399081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:12:17+00:00 2026-06-09T21:12:17+00:00

I want to edit my .htaccess to prevent the current folder plus all subfolders

  • 0

I want to edit my .htaccess to prevent the current folder plus all subfolders to cache content. The site contains html, images, swf, xml files.

I tried this, but the server did not like that.

<FilesMatch ".(js|css|pdf|swf)$">
Header set Cache-Control no-cache
</FilesMatch>

Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, xxx@xxx.com and inform them
of the time the error occurred, and anything you might have done that
may have caused the error.

More information about this error may be available in the server error
log.

Additionally, a 500 Internal Server Error error was encountered while
trying to use an ErrorDocument to handle the request.

Apache/2.2.14 (Ubuntu) Server at http://www.xxx.com Port 80

Any tips?

  • 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-09T21:12:18+00:00Added an answer on June 9, 2026 at 9:12 pm

    ‘500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request’

    it looks like it has nothing to do with the code snippet above. Look in your VirtualHosts configuration. If you define a reference to a location in a DocumentRoot directive that doesn’t exist, then Apache will throw an error.

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

Sidebar

Related Questions

I want display just the directory content of my Webserver. My .htaccess file contains:
I want to cache all of my files but I can't figure out how
I want edit multiple strings at once by selection the list of strings needs
I want to edit links when the user changes the value of a <input
I want to edit the Velocity Report generated with Visual Studio 2010s scrum template.
I want to edit UITabbarItems during the view life time. The background is that
I want to edit .vimrc file from Vim and apply them without restarting Vim.
I want to edit the css of a div element during .resize() event and
I simply want to edit some commits with git rebase -i HEAD~2 inside the
Dynamically I want to edit/update hosts(etc/hosts) file to add domain. To edit hosts(etc/hosts) file

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.