Saiyine
Saiyine

Reputation: 1585

Problematic slashes at my URLs

I've got a web page with URLs like http://www.domain.com/section.whatever.php. Problem is, whenever an URL like http://www.domain.com/section.whatever.php/something, the page still works but the slash completely destroys the design of the web, I suppose it makes the browser think all the static assets like images and CSS are at the wrong directory level.

Is there any way to avoid this?

Upvotes: 0

Views: 40

Answers (1)

Alan Haggai Alavi
Alan Haggai Alavi

Reputation: 74252

One way is to update all your links to static resources so that they are absolute (from the root of the domain). For example: /stylesheets/screen.css

Upvotes: 1

Related Questions