All Questions
25,002
questions
-2
votes
1
answer
37
views
Typing the text ".htaccess" (no quotes) into a html5 input text or textarea field causes 403 page on form submit [closed]
while testing my html5,js,php project form, i discovered that if i type .htaccess into a text input field or a textarea field that it causes the 403 forbidden page when i submit the form.
I understand ...
-2
votes
1
answer
46
views
Problem with .htaccess redirection to my API
I have a WordPress site in which I develop a plugin. Inside this plugin, I developed a API.
In my local environment, my URL to access my site is http://localhost:81/site. I'd like requests made to ...
0
votes
1
answer
45
views
How to redirect in htaccess without blocking php api?
I have an index.php file which is located in the root directory. This outputs either HTML or JSON, depending on the URL:
<?php
require_once('./../private/Router.php');
new Router();
?>
&...
-3
votes
0
answers
24
views
Bloqueio de PDFs no site Wordpress via Htaccess [closed]
Tenho o seguinte código:
# Verificar se o arquivo solicitado é um PDF
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} \.pdf$ [NC]
RewriteCond %{HTTP_COOKIE} !user_logged [NC]
# ...
1
vote
2
answers
35
views
.htaccess map to /books or /books/ or /books/<url_slug>
I am trying to map.htaccess to /books or /books/ or /books/<url_slug>:
Options All -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ $1 [R=301,...
0
votes
0
answers
26
views
Unity WebGL Multiple CORS header ‘Access-Control-Allow-Origin’ not allowed
I have a Unity webGL training app. The app can run on any PC. It runs a number of php scripts on the server to logon and update test scores etc in a database with mysqli. It checks whether a user ...
0
votes
0
answers
19
views
Integrating New URL Segments in CodeIgniter Without Disruption
I've developed an application for a client that currently uses the URL structure https://project.es/index. Now, they need to switch to https://project.es/apps/other_segment/index.
I've adjusted ...
0
votes
0
answers
42
views
Removing extension on some pages
I have a working htaccess to remove the extension on some pages and its working. But the problem files in other folder like /blog/ don't work.
I want also files in other folders to be removed.
...
-1
votes
0
answers
23
views
Remove .php extension from some pages [duplicate]
How can i remove .php extension from some pages, not whole site. but some few pages
like
index.php
contact.php
and then leave the rest
RewriteEngine on
#redirect /file.php to /file
RewriteCond %{...
-1
votes
0
answers
25
views
Can't access folder from public, there're some problems with .htaccess
I am currently developing an API using PHP. I am unable to access images in the image folder. I have attempted to modify the .htaccess file to allow access to file extensions such as jpg and gif, but ...
0
votes
1
answer
61
views
Switch to php8.2 in .htaccess not working
I just try to switch from php7.4 to php8.2 changing .httaccess like this:
DirectoryIndex index.php
AddHandler application/x-httpd-php82 .php
<IfModule mod_negotiation.c>
Options -MultiViews
</...
0
votes
0
answers
25
views
Is there something I am missing when setting up URL routes in my PHP script? Wildcard matches are routing to specific terms
I am experiencing some odd behavior with my URL routing system. I recently updated the PHP version of my server to PHP8 (from PHP 5.5), so I am not sure if it started then, or if was something that I ...
0
votes
0
answers
36
views
Configure a Website so that It Serves its Pages from a Subfolder
I am trying to configure a website so that it serves its pages from a subfolder.
The website's root folder is the following.
/home/infcs/server/public/apps/mysite
The website's root folder contains ...
1
vote
1
answer
32
views
Getting ready state error when trying to upload. Suspect it might be htaccess rewrite issue?
I am trying to upload images. I have the following code working perfectly on another page, but it's not working here. I am getting this error when I try it {"readyState":0,"status"...
0
votes
1
answer
32
views
How to redirect domain to subfolder based on url path?
I have an application developed by reactjs and php laravel.
I want to deploy deploy this in a shared hosting with each subfolders not submitted domain.
Example Folder Structure:
ReactApp -> /...