Category ".htaccess"

removing .php extension and creating dynamic url from htaccess

I have following code for hiding php extension and redirecting user to a non .php url if user adds a .php extension in url for example domain.com/about.php shou

.htaccess 301 redirect with exclusion does not work

I try to use a simple 301 redirect from domain1.com/folder/ to domain2.com/ but excluding domain1.com/folder/subfolder I use the following code in .htaccess: Re

Replace part of a long URL and redirect

Is there a way to redirect the URL as follows: URL is generated based on a filtering system so it is like this https://example.com/product-category-no-slash-gen

redirect 301 url htaccess /do.php?id=15 to download15.html [duplicate]

I hope everyone is fine. I want to convert links like this /do.php?id=15 to /download15.html I applied this step but it doesn't work Redire

WordPress Redirection Plugin Redirect

I'm trying to redirect a page and any subpages to the root but I can't find a way of doing it. I'm using the redirection plugin (https://redirection.me/). I wou

.htaccess rewrite rule from end of path

I need to rewrite the rule for my url according to this pattern: Starting url : https://example.com/path/&param1=1&param2=2 Destination url: https://exa

Preflight CORS error followed by 404 error

I am experiencing an issue when trying to get data from API for my react app. I am trying to pass protect my API using htaccess file so when trying to send auth

Remove '.php' file extension but still validate paramaters after trailing slash?

I've been searching for how to do this, and I haven't been able to get anything to work yet. I want to remove the '.php' file extension from all files that have

apache virtualhost site using .htaccess not working

I am running brew/apache on on my local machine (mac-os monterrey). I want to configure virtual hosts. The lookup for one of the virtual host (panierssaison.loc

Htaccess doesn't let access to sub directories with parameters

I am trying to create a htaccess for seo urls, I created my htaccess all urls works fine exclude subfolder with parameters, they redirects to sitefolder. sitefo

How to pass a cookie value as a parameter with multiple rewrite conditions in htaccess

I want to first check if the request URI is an image and then check for a cookie and pass both the values as parameters to a file in the multiple rewrite condit

React router 404 Error On (Litespeed Webserver)

I am building movie app, initialize with create-react-app. I am using react-router@5. I get 404 Error when route url on production (on Litespeed webserver) but

htaccess ErrorDocument not working with when removing php extension

.htaccess # Security Headers <IfModule mod_headers.c> Header set X-XSS-Protection "1; mode=block" Header set X-Frame-Options "SAMEORIGIN" Head

Changes to /etc/phpmyadmin/config.inc.php do not have effect

I would like to configure PhpMyAdmin to access only one database through one user. I tried before to restrict access via .htaccess using this answer from 2013 b

Wordpress/Apache rewrite/redirect rule and regex

I need to do some apache rewrite/redirect rules to external webservice in case of 404 error for specific file extensions: .jpg, .png, etc. Wordpress is used her

React/TypeScript app fails to deploy to subdomain (404)

Hi I made react typescript app. Everything works perfect on localhost and domain, but when I upload same build folder to the subdomain i have 404 error. My .hta

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