skip to Main Content

Custom header is being stripped out – Apache

I'm passing a custom X-Authorization header to my API. In my API, I'm allowing the header like so: header('Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With, X-Authorization'); I'm checking the headers using print_r(apache_request_headers()) The only reference to X-Authorization in the response is: [access-control-request-headers] =>…

VIEW QUESTION

httpd (apache) – rewrite page -> query parameter

I have a website containing a directory and pages. Let's call the directory 'Maintenance' and pages 'page1.html,...' I want to redirect each file under the directory to query parameter such as '/?q=pageX'. <VirtualHost *:80> ServerName myServer.com ServerAlias www.myServer.com DocumentRoot "/var/www/html"…

VIEW QUESTION

.htaccess RewriteRule gives right link but also a 404 – Apache

I'm hosting different sites http://example.nl/example.nl/_sites/byos/ http://example.nl/example.nl/_sites/eggbot/ http://example.nl/example.nl/_sites/hslab/ http://example.nl/example.nl/_sites/prolactin/ And yes there is a folder that has the same name as the domain, there is a reason for that. And I want the links to become: http://example.nl/byos/ http://example.nl/eggbot/ http://example.nl/hslab/ http://example.nl/prolactin/ This…

VIEW QUESTION
Back To Top
Search