1. On one of our sites if you type:
(replacing example.com with our own)
You get an "Error establishing a database connection" page which we don't have that page for 1 and for 2 we don't use word press anymore. So why do we get this display page?
2. On the site I'm working on now I modified the error pages to return to the main index page of the website. The problem is that with normal file paths the templat comes out fine, however if you entered a path like:
with a trailing slash it interfers with the css link causing the page to display without any style. When viewing the source all coding is un affected. How do I check for and remove/ adjust the trailing slash so the page will display correctly?
Note in the 2 examples path above /wp returns page with style link correct /wp/ returns without styling but link is unaffected.
Thanks In Advance!
Used rtrim() to remove trailing slash and while it did remove it results remain the same. Maybe the 'REQUEST_URI' is taking command of path? Can it do that?