Jump to content

The Trailing Slash


Ricky55

Recommended Posts

One of my clients has just called to say that he can't access a page on his website. I can access no problem.

 

Its just a static site that uses some PHP.

 

I have a folder to represent each section of the site for example about-us

 

In each folder I have an index.php file.

 

Should my links contain a trailing slash or not?

 

Should I be linking like

 

<a href="/about-us/"></a>

 

or

 

<a href="/about-us"></a>

 

I've tried searching for an answer but no one seems to give a definitive answer.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/272607-the-trailing-slash/
Share on other sites

Thanks mate. I have changed all the links now so they do have the slash.

 

IE9 though on my clients machine fails to find the index.php within a particular folder. Can you think of any reason why this could be happening?

 

He can access every other page of the site apart from this one particular page.

Link to comment
https://forums.phpfreaks.com/topic/272607-the-trailing-slash/#findComment-1402824
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.