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 7430883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:12:36+00:00 2026-05-29T09:12:36+00:00

I have a content in htaccess Options FollowSymLinks RewriteEngine on # if a directory

  • 0

I have a content in htaccess

Options FollowSymLinks

RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule .* index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

How do I add to enable PUT method?
Thanks

  • 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-05-29T09:12:37+00:00Added an answer on May 29, 2026 at 9:12 am

    Here is the solution which may work for you

    1. First, a utility file to support HTTP digest authentication, which
      can be located in the target directory (or a common PHP include
      directory if you can set one up): dowload and rename dauth.php

    2. Second, in the directory concerned, place the following PHP script:
      download and rename put.php

    3. Third, store the following .htaccess file in the target directory,
      replacing ‘/path-to-target-directory’ with the domain-relative path
      (e.g. if a target file can be read at http://mydomain/x/y/z.html,
      then the /path-to-target-directory would be ‘/x/y’): download and rename .htaccess

    .htaccess example:

    Options FollowSymLinks
    
    RewriteEngine on
    RewriteBase /path-to-target-directory
    RewriteCond %{REQUEST_METHOD} !PUT
    RewriteRule ^/put\.php$ - [F]
    RewriteCond %{REQUEST_METHOD} PUT
    RewriteCond %{QUERY_STRING} ^$
    RewriteRule ^/put\.php$ - [F]
    RewriteCond %{REQUEST_METHOD} PUT
    RewriteRule ^(.*)$ put.php?url=$1 [L]
    

    For more info refer: Here

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

Sidebar

Related Questions

I have a .htaccess file with follow content: Options +FollowSymLinks RewriteEngine on RewriteRule ^produto/([a-z0-9-]+)/([0-9]+)/?$
i have the following .htaccess file for me web Options +FollowSymLinks RewriteEngine on RewriteRule
I have the following in my .htaccess file: Options +FollowSymlinks RewriteEngine On RewriteRule ^$
I have an .htaccess file with the following contents: Options +FollowSymLinks +ExecCGI <IfModule mod_rewrite.c>
I'm having this .htaccess file: Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase /d/IT2 Tryggheim/it
I have an .htaccess file with following content: AddHandler x-httpd-php5 .php For some reason,
I am using URL rewriting via htaccess. Following are contents: Options +FollowSymLinks RewriteEngine on
I have the following directory hierarchy -root_folder .htaccess -sub_folder .htaccess The content of the
I have a .htaccess file in a directory, but it has no effect (no
So I have the following .htaccess file contents from my other project which is

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.