Pak Jiddat

Read: In the name of thy Lord Who createth, Createth man from a clot. Read: And thy Lord is the Most Bounteous, Who teacheth by the pen, Teacheth man that which he knew not. Nay, but verily man is rebellious That he thinketh himself independent!. Lo! unto thy Lord is the return. (Sura Alalaq 96:8)

Using flags with rewrite rule

Created On: 09 May, 2017: 16:53:46 - Tags : web servers


The behavior of Rewrite commands can be modified using flags. Some of these flags take arguments. Rewrite supports several flags. The [R] flag causes an external redirection. It means the url in the browser changes when the [R] flag is used. The [R] flag takes an argument with a default value of 302. This argument is the http status code of the http response.

The default behavior of the RewriteRule is to cause an internal redirection to the target path. It means the url in the browser does not change. The target path is the filesystem path but it may be given as a url

The [L] flag signals that the processing of the mod_rewrite commands should stop.

Related Articles

  1. PrivateTmp systemd option prevents access to tmp folder
  2. Generating free SSL certificate from LetsEncrypt on localhost
  3. INADEQUATE_SECURITY - SSL Cipher problems with HTTP2
  4. Preventing browsers from caching content
  5. Making HTTP POST requests from Google Chrome
  6. Increasing web server timeout
  7. Redirect http to https with Apache
  8. Creating and Installing Apache Self Signed Certificate
  9. Redirecting without mod_rewrite using regular expressions in htaccess
  10. Generate Certificate Signing Request (CSR) for ssl certificates
  11. Disabling output buffering with mod_fcgid
  12. Configuring Apache mod status
  13. Allowing Cross Origin Requests using htaccess
  14. Redirect http to https with Nginx
  15. Blocking visitors by http method using LimitExcept Apache directive
  16. Access control directives for Apache
  17. Passing query parameters to proxy server in Nginx
  18. Use of Preflight request in HTTP Cross Origin Resourse Sharing (CORS)
  19. Using RewriteCond directives