Apache directives (pretty url-removing extensions)

Discussion in 'Installation/Configuration' started by pkaresz11, Nov 4, 2015.

  1. pkaresz11

    pkaresz11 Member

    Hi,
    i tried to remove .php extensions from URLs of my site.
    I have configured die Apache directives in admin panel(settings of my website) such as:

    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$ $1.php [NC,L]
    It works,but css and js files no more loaded.Whole website is without stylesheet now I have found many descriptions by Google(base href,absolute links etc) but doesn't work.
    Do I need a special setting in ISPconfig?
    Thanks
     
    Last edited: Nov 10, 2015

Share This Page