Skip to main content
Filter by
Sorted by
Tagged with
4 votes
1 answer
64 views

I have a task to transform a project that currently works in a single language into a multilingual project. The current project URL structure looks like this: www.site.com www.site.com/contact.php www....
Europeuser's user avatar
0 votes
0 answers
87 views

Request https://example.com/ , htacces file : RewriteEngine On RewriteRule ^$ /one RewriteRule ^/one /two [R] result I get https://example.com/two, remove the slash in the second RewriteRule ...
The nothing's user avatar
1 vote
1 answer
74 views

I am trying to load custom dynamic subdomains to load as specific subfolders on my WordPress site. Example: apple.example.com should load the content from example.com/subfolder/apple apple.example....
m3tsys's user avatar
  • 3,977
0 votes
1 answer
85 views

Fresh new installation of Laravel 12 composer create-project --prefer-dist laravel/laravel api cd api composer update sudo chmod -R 775 storage sudo chown -R www-data:www-data storage sudo chmod -R ...
Kevin Waterson's user avatar
0 votes
1 answer
81 views

So we have a website, www.horsesandgoats.com and this website has a bunch of unique fonts, these are stored in /includes/fonts/ and need to be available for CSS and JS in other folders inside the /...
Mm-Art-In's user avatar
  • 23.1k
-1 votes
1 answer
63 views

I'm using a CMS that doesn't allow me to change URL structure. It's find for 99.9% of my pages, but there are two that I'd like to have specific URLs. RewriteRule directives work for me in my ....
GFL's user avatar
  • 1,502
0 votes
1 answer
68 views

I currently have my Laravel project accessible via the URL: https://URLXX.com/dev/public/ I’d like to access it directly using: https://URLXX.com/dev The same setup should also work for my staging and ...
Ahmed C's user avatar
  • 61
0 votes
1 answer
55 views

Current htaccess block : # redirect "/search/location.php?state=x&city=x&name=x" to "/search/state/city/name/" RewriteCond %{THE_REQUEST} \s/search/location.php\?state=(.+)&...
user756659's user avatar
  • 3,522
0 votes
0 answers
87 views

I have a site on a VPS. It's a combination of static html and a WMPU installation, where I use subsites for categories. I was working on migrating all static html content to WP pages, and decided to ...
user31553763's user avatar
0 votes
0 answers
77 views

I added this specific rule to my .htaccess in / (webroot) within a wordpress install (above wp auto generated code, there is no further interference with later wp settings there): RewriteRule ^app/my-...
Netnoob's user avatar
  • 43
0 votes
0 answers
70 views

I'm gradually restructuring my site's URLs. I have a group of old URLs with patterns like this: mt-14_21-28 mt-15_26-hasta-16_04a mc-01_21-28 lc-07_36-50-y-lc-08_01-03 lc-09_28-36 lc-22_14-71-y-23_01-...
A. Cedano's user avatar
  • 1,069
1 vote
0 answers
91 views

I have a WordPress website. For each page https://www.sample.com/english-url/, there is a multilanguage page https://www.sample.com/mt/english-url/, and this page also has a localized version of the ...
alancc's user avatar
  • 859
1 vote
2 answers
93 views

I am trying to create a semi-serverless SPA w/ a blog but want to have "RESTful" URLs. I have the following .htaccess commands doing the job--in combination with JavaScript History API; but, ...
Jim22150's user avatar
  • 533
1 vote
0 answers
42 views

the following htaccess redirected subdomains to subfolders with same names subdomain mooga redirected to folder mooga and we have subfolder blog in mooga RewriteCond %{HTTP_HOST} ^((?!www\.)[^.]+)\....
Jimmy Jhon's user avatar
0 votes
0 answers
37 views

the following htaccess rule will redirect files without extension (contact) to (contact.php) but it also run on folders I want it to run only on files only and skip running on folders RewriteEngine on ...
Jimmy Jhon's user avatar
3 votes
2 answers
257 views

Only thee following directives in the .htaccess file SetEnvIf _ .* SSS=1 <If "%{ENV:SSS} -eq 1"> Header set MyHeader 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-%{SSS}e' </If&...
Anonymous's user avatar
  • 751
0 votes
0 answers
31 views

I have deployed my Laravel application on a cPanel server under a subdomain. The app is hosted at: Installer link (working fine): https://sns.sadistributor.com/public/install/ Main link (not working): ...
Muhammad Hamza's user avatar
0 votes
0 answers
76 views

I have a PHP project deployed on shared hosting, and my files are structured like this: /public_html/ .htaccess /public/ index.php ... I want the site to be accessible from: ...
dg9495's user avatar
  • 13
3 votes
1 answer
73 views

I'm working on a WordPress site that was apparently hacked some time ago. The intruder added a redirect plugin and has been happily redirecting traffic to spammy sites for a while. I removed the ...
banacan's user avatar
  • 115
2 votes
1 answer
65 views

I pored through search results, and other answers, and asked chatGPT, but nothing seems to work in my specific case. In my apache error log, I am getting this error: AH10411: Rewritten query string ...
insaner's user avatar
  • 1,779
1 vote
1 answer
75 views

What I'd like to do is make a directory act as root for a particular application. So resources linked as "/style.css" would actually load from "website.com/forum/style.css". I have ...
Phaelax's user avatar
  • 2,054
1 vote
1 answer
79 views

I am having an issue with redirects when posting form data to an Apache HTTP Server. When DirectorySlash is enabled, mod_dir is signaling an HTTP 301 to my client, which is causing the HTTP method to ...
Cardinal System's user avatar
3 votes
1 answer
202 views

I am trying to create .htaccess rules at the root of a client site to block traffic to a specific subfolder where WordPress is installed. Here is my structure: example.com |--blog |--.htaccess |-...
lharby's user avatar
  • 3,335
0 votes
1 answer
86 views

I have a Typo3 v12 installation (not a fresh one, I have to admit, but an upgraded). I have also upgraded the .htaccess file - using the one from https://raw.githubusercontent.com/TYPO3/typo3/refs/...
ESP32's user avatar
  • 8,773
0 votes
1 answer
38 views

I have a problem where a RewriteRule in an .htaccess is bypassing authorisation. The same RewriteRule in the server config works, with authorisation, but the one in the .htaccess unfortunately takes ...
EML's user avatar
  • 10.5k
0 votes
0 answers
50 views

<IfModule mod_rewrite.c> Options +FollowSymLinks -MultiViews RewriteEngine On RewriteCond %{REQUEST_URI} !\.(?:css|js|jpg|gif|png)$ [NC] RewriteRule ^category/(.*)$/?$ ...
Shruthi S M's user avatar
1 vote
0 answers
61 views

UPDATE – Solution – <?php include 'loggercode.php'; $filename = "pages-26-27.pdf"; header("Content-type: application/pdf"); header("Content-Length: "...
Andante88's user avatar
0 votes
2 answers
169 views

I have a single, specific non-PHP file on the server that must be executed as PHP. For the sake of example let's say it's a text file called test.txt and its contents are: <? echo 'hello world'; ?&...
equin0x80's user avatar
  • 333
0 votes
0 answers
45 views

My website is divided in 3 parts, one part for PC/APPLE, second part for MOBILE and third part for ADMIN. I have an htaccess that does the trick to redirect user to PC/APPLE part or to MOBILE part. ...
Philaupatte's user avatar
0 votes
1 answer
65 views

"My WordPress site's post pages return intermittent HTTP 406 "Not Acceptable" errors, but ONLY for site analysis/SEO tools (e.g., SEMrush, Ahrefs, GTmetrix). When accessed directly by ...
Zaheer Ahmad Safeer's user avatar
3 votes
2 answers
65 views

I have this htaccess rewrite rule that's meant to rewrite /index.php?fuse=admin&view=snapin&controller=snapins&plugin=page&v=termsofservice to /termsofservice.html but it's not working ...
Geraldo V Vieira's user avatar
1 vote
0 answers
86 views

As the final task of my university practice, we need to deploy our Laravel project to the university server. When I SSH into the machine, I land in my home directory, which only contains a public_html ...
Daniel Ramos's user avatar
  • 2,077
2 votes
1 answer
35 views

I am looking to create a rewrite file (.htaccess) for the National Library of Medicine (NLM) Classification, which uses URLs of this form (https://classification.nlm.nih.gov/schedules/QS#QS%2023) to ...
user3684314's user avatar
0 votes
1 answer
52 views

I have hostinger shared hosting plan. working on laravel project. For a domain my current file structure is this : Public_html/ Test/ Public/ .htaccess Index.html ...
INFINIENDER 's user avatar
0 votes
1 answer
49 views

We have a domain alias.com , which is a CNAME to domain.com . When we navigate to it (it's a Wordpress site) we get unexpected redirects. E.g. https://alias.com/ => redirected to https://...
HelloWorld's user avatar
1 vote
1 answer
61 views

I have the following strange situation with SSI (Server Side Includes) in Apache servers: <!--#if expr="1 < 0" --> results in FALSE in both servers <!--#if expr="1<0&...
Free Bud's user avatar
  • 796
2 votes
2 answers
98 views

I am unable to correctly set up the code that manages redirects from old URLs to new ones. I have an old URL (404 error) like this: https://www.example.com/it/stainless_steel_flues.html and I would ...
Ric's user avatar
  • 41
1 vote
0 answers
59 views

My PHP program needs to support two languages, en and no with .htaccess file setup. I am using Apache installed on Windows 11. When I go to /testsite/en/ I get an error 500. Folder structure: C:\...
Europa's user avatar
  • 1,422
0 votes
1 answer
53 views

I have a hosted site where I want to run a Websocket server in node.js. I use Postman to create a ws connection, which sends a header with “connection: upgrade”, but this is not let through. Instead ...
Sharpeye's user avatar
0 votes
0 answers
33 views

thank you for the last mysql help. Now I have an additional challenge. I am using htaccess to secure part of the admin area. Is there any change to disable the authentication for a special url with ...
Znarf's user avatar
  • 21
0 votes
1 answer
44 views

I try to make a RedirectPermanent via htaccess file. My website is hosted on OVH. So, redirection is working with: RedirectPermanent /what_to_see/ /what-to-see When but I do a redirection with multi /...
sim100's user avatar
  • 129
0 votes
0 answers
22 views

I'm looking for advices about the rewriting URLs fonction of cfWheels. I'm running an app on Adobe ColdFusion 2025, cfWheels 2.5.1 and CommandBox I'm looking for rewriting URLs of the website (...
Calex13's user avatar
0 votes
1 answer
57 views

I am starting to lose it... I had a few ReweiteRules that all worked but suddenly some of them stopped and I can't figure out why. For example: This works: /tool/{slug}/{user_code}/{response}/{...
santa's user avatar
  • 12.6k
0 votes
1 answer
64 views

I've installed a CodeIgniter app on an OpenLiteSpeed server, and although the script installation went smoothly, there appears to be a problem with the .htaccess redirects. Pages only seem to work ...
NotACoder's user avatar
0 votes
1 answer
483 views

I am trying to setup the serving of ./well-known/traffic-advice, if nothing else to cut the number of 404s and possibly speed-up access for Chrome users. Setting via .htaccess would be more flexible ...
Iain H's user avatar
  • 1
0 votes
0 answers
38 views

I have two blocks of the base rules in htacccess: First: RewriteCond %{HTTP:Accept-Language} ^en [NC] RewriteCond %{REQUEST_URI} !^/en/ [NC] RewriteRule ^(.*)$ https://example.com/en/$1 [NC,R=301,L] ...
Melbis's user avatar
  • 107
0 votes
0 answers
100 views

I have a website based on Wordpress and my plan is to gradually migrate to a custom web application based on MVC. This is the structure of my directories: . └── home/ ├── .env ├── composer....
A. Cedano's user avatar
  • 1,069
0 votes
0 answers
30 views

I want to redirect my site to a specific page (Ex: /example-page-400) if the status code received from the server is 400. Actually I am having a drupal site on which SSO login is enabled. In some ...
Zaid Khan's user avatar
  • 367
0 votes
1 answer
146 views

I am using Apache 2.4.37 on a fairly simple server that is just serving images. The human client that requested this service be setup with case insensitivity. Initially I implemented mod_speling like ...
Giacomo1968's user avatar
  • 25.3k
0 votes
0 answers
81 views

I'm deploying a website using Laravel on a server using CWP (Control Web Panel). On localhost, I can access files in storage/uploads/... just fine. https://example.com/storage/uploads/...
uno's user avatar
  • 9