Hi Everyone

I have been searching the web and found a lot of information on mod_rewrite for creating 'good' URL's, such as 'hiding' query strings by mapping them to virtual directories

e.g
content.cgi?date=2000-02-21/article.cgi?id=46&page=1
to:
content/2000-02-01/article46 (or similar)

but I am finding it hard to digest all the information and extract what I need.

I have a very basic site with static pages (and not many of them) such as mydomain.com/index.html or mydomain.com/portfolio/page1.html and all I want to do is 'hide' the extension, so the URL is mydomain.com/ or mydomain.com/portfolio/ ?

And how do I go about handling missing trailing slashes?

Many thanks for your time and support

Alex

I'm also interested in this kinda stuff.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.