.htaccess Questions

9

Solved

I have a URL http://localhost/index.php?user=1. When I add this .htaccess file Options +FollowSymLinks RewriteEngine On RewriteRule ^user/(.*)$ ./index.php?user=$1 I will be now allowed to use...
Maxilliped asked 1/8, 2014 at 12:58

3

I have duplicated my site using the duplicator plugin from wordpress.org. However, when I wanted to run this on a new hosting service, first I encountered a 504 gateway timeout error. Therefore, I ...
Muzzle asked 28/4, 2017 at 17:48

3

Solved

How can i use RewriteMap directive in htaccess file? When i put it there i get "RewriteMap not allowed here" error. I know this error will disappear when put it in httpd.conf or virtualhost config...
Biodegradable asked 20/10, 2010 at 7:29

4

Solved

I've created a MVC application using php, but when I try to access the urls it gives me "The server encountered an internal error" When I check the log it gives me : Internal Server Erro...
Tremendous asked 29/12, 2014 at 7:14

2

Solved

I need to get dynamically the current directory in which my .htaccess file is located. Is that possible ? (A variable maybe ?). Something like : %{SCRIPT_FILENAME} Thank you in advance. EDIT : I...
Prussia asked 4/3, 2013 at 10:45

2

Solved

This is essentially the same question as htaccess force https and redirect www to non-www, but no other subdomains (i.e., I want to configure Apache to redirect all non-HTTPS and/or "www" URLs to H...
Piapiacenza asked 3/9, 2016 at 5:57

3

Solved

I looked at the explanation in the apache.org site but it didn’t explained in a way I can understand. I found some info here .htaccess File Options -Indexes on Subdirectories but it doesn’t explain...
Rawden asked 5/4, 2013 at 15:30

5

Solved

I deployed a React website using GoDaddy (http://normaned.com), and I’m having trouble with my react-router routing not working upon refresh. Clicking on links works as expected, but if a page is r...
Cyan asked 18/10, 2019 at 14:25

7

Solved

Bellow is my site directory structure: htdocs/ My-Project/ public/ index.php css/ img/ js/ src/ config.php templates/ library/ I do not want any direct user access to any files inside...
Graehme asked 13/5, 2014 at 15:40

5

Solved

I have updated Apache today (to 2.4.56-1) and a load of .htaccess rewrites that used to work are now getting AH10411 errors, relating to spaces in the query. I'm struggling for a 'proper' solution....
Oppenheimer asked 9/3, 2023 at 12:0

2

I am using OctoberCMS and I have apache server and using AWS and when I do PageSpeed testing https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fwww.rosterelf.com%2F&tab=d...
Darfur asked 30/4, 2021 at 5:52

6

Solved

I followed these steps to deploy my nextjs on cPanel. go to package.json and add this line: "homepage": "http://afsanefadaei.ir" run next build to have .next folder as my build folder go to cpane...
Weevil asked 31/1, 2020 at 16:45

3

Solved

I am trying to create this redirect: Redirect /commercial%20work.html http://nataliearriolaphotography.com/fine-art-photography-prints.html The problem is that when I first created this page I l...
Airdrome asked 4/1, 2013 at 20:9

8

Solved

None of my website images are loaded, although paths are correct. In my Apache logs, I have plenty of : (13)Permission denied: [client 87.231.108.18:57108] AH00035: access to my/file/path/some-p...
Leukoderma asked 7/8, 2014 at 18:54

14

Solved

Point #1 If I type: www.myurl.com/somepage http://www.myurl.com/somepage http://myurl.com/somepage https://myurl.com/somepage have it redirect to https://www.myurl.com/somepage Point #2 When...
Phonate asked 4/1, 2016 at 7:12

5

Solved

I have a Wordpress website running on Lamp Server on Ubuntu Server 14.04. I just tried to use the option for Post Name permalinks, and now my pages no longer load up. I turned on the mod_rewrite f...
Filament asked 7/6, 2015 at 18:33

11

I am trying to password protect a directory, and have two files in the directory which should password protected it: .htaccess .htpasswd HTACCESS: ###Contents of .htaccess: AuthUserFile /var/w...

2

Solved

I'm wondering whether I can use RewriteEngine On only once within my htaccess when it is embed in IfModule mod_rewrite.c or do I have to use it every time because it is embeded? See example below....
Flirt asked 14/7, 2013 at 3:56

8

I am using the following htaccess rul to remove double or more slashes from web urls: #remove double/more slashes in url RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2 [R=301,L] Thi...
Wariness asked 13/6, 2013 at 6:34

2

Solved

I'm a self-taught coder and I like to debug by echoing suspicious variables and commenting out code. Lately, I've had to learn more about the .htaccess file. I need it to do things like interpret...
Huckleberry asked 21/3, 2009 at 12:3

5

I want to host my react app in a subdirectory on my shared hosting account. Ie in the directory domain.com/mydirectory/. But when I type domain.com/mydirectory/ in the search bar it opens the index...
Yoke asked 18/7, 2019 at 8:59

2

Solved

I've always used Options -Indexes to disable directory listing through .htaccess. However, I have seen people using IndexIgnore * instead. What's the difference? Which is better than the other?
Manualmanubrium asked 27/12, 2012 at 23:27

5

Solved

Is it possible to do include rules from another htaccess file in .htaccess ? .htaccess RewriteEngine On RewriteCond ... RewriteRule ... Include .htaccess1 . . Include .htaccess2 Doing this giv...
Fugazy asked 30/11, 2012 at 7:4

3

Solved

I have this structure: site.com/api/index.php. When I send data to site.com/api/ there is no issue, but I imagine it would be better if the api would work without the trailing slash also, like this...
Sciomachy asked 4/9, 2013 at 23:27

4

I'm having some issues with passing an email address in a url to a symfony app. The url looks like example.com/unsubscribe/email/[email protected] It will always result in a sfError404Exce...
Gilford asked 19/10, 2009 at 20:25

© 2022 - 2024 — McMap. All rights reserved.