I'm not sure what is the problem and that i try do plenty of research

I actually do realize that if there's a slash in the finish from the URL you will find plenty of benefits of loading and stuff.

the main problem I am facing any time there's a slash for instance http://domain.com/file.php/ my style.css is going to be disable however after i by hand take away the / in the finish from the url then your style.css backup to operate again.

How do you make or perhaps is there any script or htaccess to get rid of this function to be able to let my site visitors click the nav bar there will not add the / in the finish?

Thanks!

The / inside a URL signifies a directory around the file systen of the webserver so that your request file.php/ is searching for a directory and never a PHP script file.

A htaccess rewrite to ensure that any directory instantly includes a trailing slash appended are available in the rewrite guide:

RewriteEngine on

RewriteCond % -d

RewriteRule ^(.+[^/])$ $1/ [R]

PHP doesn't add / to Web addresses automatically, it is your script doing that.

If you wish to make use of the style.css regardless, make use of the absolute or even the full path - therefore if your look.cascading stylesheet is on http://domain.com/style.css, you'll be able to either use

<link rel="stylesheet" type="text/css" href="/style.css">

or

<link rel="stylesheet" type="text/css" href="http://domain.com/style.css">

Together with your file.php factor, it appears in http://domain.com/file.php/style.css, while either of the aforementioned uses the file you produced at http://domain.com/style.css.

That will too work with http://domain.com/folder/file.php - simply employ /folder/style.css within the href-tag or, once more, the entire Hyperlink to it.

Here's what I discovered:

Take away the trailing slash in url with htacess I believe this is exactly what you're searching for.

How to locate it:

Just perform a look for remove ending slash of url