PDA

View Full Version : .htaccess question


error_22
25 Oct 2006, 11:39
I have this php script that displays the content of a db field.

the url looks like this: mod.php?do=some-name-here

for better URLs i have a .htaccess document with the following code:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



so the url www.mydomain.com/some-name-here would point to www.mydomain.com/mod.php?do-some-name-here.

What I wanna do is: I want the URLs so look like this:

www.mydomain.com/some-name.here.html

How do I add that last ".html"?

Thanks in advance
Niklas

nico_swd
25 Oct 2006, 13:03
Try this.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

error_22
25 Oct 2006, 13:54
Wow you really are helpful!!

Tahnk you so much, and thank you so much for all the help with the template engine!!