Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Apr 2012
    Thanked 0 Times in 0 Posts

    Smile PHP page / Apache / loading duplicate content

    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 http://www.onlinewebshop.dk/Webshop..../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

    Last edited by Nikolas_d; 04-13-2012 at 02:52 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts