Category ".htaccess"

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

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