Category ".htaccess"

Apache + PHP-FRM, php_value statements in a pool

I run several small websites using named virtual hosts, with Apache/mod_php. After moving to a new machine last week, I discovered that Apache/PHP-FPM had been

How can I use .htaccess rewrite to redirect the root URL to a subdirectory, but also have a fallback when nothing is found?

I'm trying to find a solution for changing root to default to subdirectory_1, but when where is no file/directory inside subdirectory_1, redirect all request to

Self referencing canonical tag in htaccess?

RewriteCond %{REQUEST_URI} !^/assets/pub/pdf-docs/.*$ [NC] I need all the pdf files in the assets/pub/pdf-docs folder to have a self referencing canonical http

How remove part of url from browser with htacess

I have 2 domains in the same hosting, inside the folder public_html stay the folders and the index.php from the domain principal and inside the public_html have

Is this .htaccess written in the correct order?

Hey all for my website I require some .htaccess settings. Some for php and some to redirect to https from http. I don't know if they are in the right order, wil

http to https and www to non-www not working correct with laravel 8 URI links

I searched a lot of about this topic to redirect all urls to https://my-domain I want delete the www and add https. I found a lot of answers this one work good

__Headers in .htaccess-file to secure website__

I wish you all a good day and a nice start in the Weekend :) I set the next Headers in htaccess-file: # Security Headers <IfModule mod_headers.c> -

Htaccess - trailing slash redirection disables post changes

I am trying to make all URLS end with trailing slash on my wordpress site. I tried both these rules in htaccess: #Trailing slash RewriteEngine On RewriteCond %{

ReactJS app inside Laravel's public folder .htaccess configurations

I am hosting a React application inside the public directory of a Laravel app where: /public_html/ app bootstrap config

How to block modification of .htaccess file wordpress

please tell me what can I do to protect my .htaccess file ? Recently I was hacked and I noticed that I can navigate into different place of my wp-admin (Posts,

.htaccess Reroute file with hidden parameter to another file

I have a problem which I'm trying to solve nor for hours. So in my root director i have a folder called plugins with some files in it. The important ones are pl

Hacked Wordpress .htaccess [closed]

I have a wordpress site that features a .htaccess and a file called postfs.php. But when I try to delete them, they are written again. I tried

Reference: mod_rewrite, URL rewriting and "pretty links" explained

"Pretty links" is an often requested topic, but it is rarely fully explained. mod_rewrite is one way to make "pretty links", but it's complex and its syntax is

Stop redirecting page if the url have control character

I want to check if the URL has control character code like 0x00,0x01..0x1f and 0x7f example.com/test.php?status0x01Http../ If it has need to redirect to 404 pa

Subdomains are not reachable after installing new website (.htaccess)

we having problems with our subdomains after installing a new website on our main adress. our main adres: https://vlinderdreef.be Our subdomains: https://ouderc

Block certain country using .htaccess

Is there a simple and reliable way to block certain countries using .htaccess? Simple means no IP range block lists - they need to be updated once in a while a

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