Delete the php extension of the site with htaccess

I have these links on my website: http://crw4u.be/werkgever.php (I can only add 2 urls in my question, since i'm a n00b) I added a code to htaccess so I can access these pages without the php: http://crw4u.be/werkgever It works fine with this code: R

What is the problem with this apache2 configuration?

I want to set up apache2 so that the wordpress website is served via port 80 and some other php website served via port 8080. This is on my local machine running Ubuntu 15.10. The sites-available/000-default.conf contains: Listen 80 Listen 8080 NameV

Accept requests while streaming in Symfony2

I have a problem for my website. I try to put a video streaming on my website. This part works good. I used this topic to make my code: Symfony2 video streaming. I use an external video file and not a local file, but it works. But until the video isn

.htaccess URL rewrite breaks relative paths

I was attempting to remove the .html extension from my website URLs using a simple rewrite in my .htaccess file: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html-f RewriteRule ^(.*)$ $1.html This however succ

Rewrite of Problen .htaccess Redirect 301

I need put a redirect on a site and a have some problems. I have this original .htccess RewriteEngine on RewriteCond %{REQUEST_URI} \.json$ [NC] RewriteRule .* - [F,L] RewriteRule config/.* - [F,L] RewriteRule config - [F,L] RewriteCond %{REQUEST_FIL

Django + Apache - wsgi problem

I've been working with Django locally and now I'm trying to push some code to a production Apache environment on an Ubuntu server I have running (http://www.youtube.com/watch?v=hBMVVruB9Vs). However, I just get a list of files in the directory and no

Rewrite a link, mod_rewrite

In shop, I have categories and products, for example. Categories are formed as localhost/categories.php?categoryid=*** where categoryid can be ANY WORD. Products are formed as localhost/products.php?categoryid=***&productmanufactor=***&productname

.htaccess for SSL?

I have: RewriteCond %{HTTP_HOST} ^MYDOMAIN\.com$ [NC] RewriteRule ^(.*)$ http://www.MYDOMAIN.com/$1 [L,R=301] RewriteCond %{HTTPS} !=on RewriteCond %{REQUEST_URI} ^/(user|admin|cart) RewriteRule ^(.*)$ https://www.MYDOMAIN.com/$1 [R=301,L] This effec

MAMP - Apache and existing PHP

I'm very new to Mac OS, and also to MAMP. So, Mac OS X comes preloaded with Apache web server, PHP, etc. I have a question regarding installing MAMP: Will the PHP, Apache, etc that is installed with MAMP replace the preloaded ones? Or, will MAMP inst

Apache password protect a specific URL

I need to password protect on specific URL, for instance anyone can access index.php but as soon as they add parameters or "GET" variables I must require valid-user. index.php -> sweet index.php?prev=1 -> require valid userInteresting ques

High mysql time +

I'm new to using/monitoring my apache server. I noticed that the TIME+ for mysql looks very high (comparatively). Is this unusual? top - 10:35:33 up 17:52, 2 users, load average: 0.02, 0.06, 0.08 Tasks: 75 total, 1 running, 74 sleeping, 0 stopped, 0

Question RewriteEngine in .htaccess

I have put this in my htaccess #Redirect all england visitor to this web page , england.php RewriteEngine On RewriteCond %{REMOTE_ADDR} ^222\.167\. [OR] RewriteCond %{REMOTE_ADDR} ^112\.111\. ........ RewriteRule ^(.*)$ http://www.xxx.com/england.php

Can not Delete Server in Response Headers (Amazon AWS)

I cannot remove the "Server" header from the response headers. I am using Amazon EC2. I have added this in Apache config: ServerSignature Off Header unset Server RequestHeader unset Server It does not do anything. I can still see the server head

Why does this htaccess file cause a 500 error in Apache?

Why is my htaccess file causing a 500 error? I am trying to get it so when anyone enters http://www.example.com/24 it will run the script for the 'key' 24 but the server reads http://www.example.com/?key=24. Php script on index.php: <?php include("

403 Error forbidden when sending GET data

My server is Linux server and reseller is mine. So i can reach WHM panel, too . When GET data comes like : a.php?url=http://www.domain.com return 403 Forbidden. But if data comes like this : a.php?url=www.domain.com it's working. So, http:// generati

Verifying whether or not a script runs on Apache via PHP

I need to check whether or not an administrative script is already running on Apache, if not then it runs. Currently, I'm loading the server-status contents and checking against it but if I'm checking whether or not the current script is already runn

Make sure the Apache user is allowed to use shell

how can I make sure that Apache/web server user is allowed to execute shell commands? I would like to execute a shell command in PHP script but it doesn't work for some reason (it works when written manually in shell by hand, of course, so the comman

Configure mod_rewrite and mod_jk for Apache 2.2 and JBoss 4.2.3

My problem is as follows: I have JBoss 4.2.3 application server with AJP 1.3 connector running on one host under Windows (192.168.1.2 for my test environment) and Apache 2.2.14 running on another FreeBSD box (192.168.1.10). Apache acts as a "front ga