View Full Version : PHP page / Apache / loading duplicate content

04-13-2012, 02:42 PM
Hi all

I have a little question, maybe someone can answer...:-)

I have a vps server running Cenos OS 6.0 and Apache.

maybe i'm a little stupid but i don't get it :-)

my problem is i have a website on http://www.onlinewebshop.dk/Webshop.php

Everything Works fine but if enter a non existent page
like this www.onlinewebshop.dk/Webshop.php/non-existent.php/existent2.php or www.onlinewebshop.dk/Webshop.php/hi.php it loads the page without css and this is all URL's on the server using php file extensions

This is only .php files not .html

I have made i rewrite rule on the index.php on the front page http://www.onlinewebshop.dk/index.php
to remove index.php and the Works fine on the front page

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} index.php
RewriteRule .* http://www.onlinewebshop.dk/ [R=301,L]

but is there a way in the apache conf file or in the htacces to make i perment stop / rewrite rule for this

Please help me on this one