Category ".htaccess"

How to register Options Indexes FollowSymLinks AllowOverride All for directory rule in nginx?

the config file in the Apache site has these lines: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html/public/ <

AWS s3 / React: Password protecting site

I have a react application deployed successfully to a S3 bucket. I need to find a way to password protect access to the s3 url, for example if you open the url

How do I 410 a pattern of toxic Prestashop URLS?

I've been trying to 410 a pattern of a few thousands toxics URLS that got indexed by Google for one of my clients. I want every urls of the website that contain

SetEnvIfNoCase not setting variable value properly

I need to access service running at domain (example.com) from two different apps running at different ports of localhost but getting CORS error. PageURL accesse

Rewrite rule for targeting http only (no https)

A website that I manage was currently turned via cpanel to redirect at https. Unfortunately a single site/folder/program works only in http and not in https (id

.htaccess rewrite without redirect / Wordpress

I want to rewrite an URL so that "few_words_Keyword" is shown in the browser but the page display /directory/Keyword In my htaccess I have following : Rewrite

How to override htaccees file for cache control header

In my company we have htaccess file in which there is no web caching enabled,I want to enable caching for one single api but htaccess file is overriding my cach

htaccess: mod_expires.c except one or multiple folders

To the following browser caching via mod_expires.c in the .htaccess... <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 day" </I

Cors issues with JWT Authentication for WP REST API and local React project

I succesfully installed "JWT Authentication for WP REST API" and followed (and reviewed multiple times) the instructions for setup correctly. My React app does

Can't exclude directories from .htaccess mobile redirect?

I'm using the .htaccess mobile redirect below which I found on an older post here. It works great, but I need to exclude several directories from the redirect r

Use a Laravel Application alongside another scripts (wp/joomla/...) and remove /public

This is my directory structure: Public_html /app /bootstrap /config /database /public /resources /routes /vendor /storage /another-sctipt I

How to apply LetsEncrypt SSL certificate to WWW domain?

I am using a Hostinger VPS and Hestia CP. I can create LetsEncrypt SSL from the control panel which successfully applies to https://example.com. It also works p

add " ? " in url via htaccess RewriteRule

i try use RewriteRule in htaccess i want my url site.com/f_search.php?langs=en&langs=en works like site.com/en/new.php?/en/f_search i used this code in

Apache Error - AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error

I have checked my Apache error log and found the following errors: [Tue Mar 13 05:04:47.855612 2018] [core:error] [pid 18177] [client xxx.xxx.xxx.xxx] AH0

.htaccess RewriteRule Weird Bug

# Do not remove this line or mod_rewrite rules and search engine friendly URLs will stop working Options +FollowSymLinks RewriteEngine On # Removes index.php

301 Redirect to remove query string on homepage only

I don't have knowledge of .htaccess redirect rules. If a user enters http://example.com?abc=123 or https://example.com?who=123 or https://example.com?xyz=123 th

Website displaying 'Default OaO frameset' as title [closed]

I recently modified my .htaccess file on my website to: ErrorDocument 404 http://www.example.co.uk/404.php where example.co.uk is my replaced

net::ERR_INCOMPLETE_CHUNKED_ENCODING

I use .htaccess to rewrite url from someurl.com/ to someurl.com/public/. First .htaccess in www root contains this: DirectoryIndex ./public/ RewriteEngine on R

Letsencrypt with htaccess

This is my current htaccess configuration of /frontend/web RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https://%{SERVER_NAME} [R,L] # if a dire

Codeigniter htaccess not working in ubuntu 16.04

This application biuld in Codeigniter Version = 3.1.3. when build this application work it properly with this htaccess file but today when i run this applicatio