As long as .htaccess files are enabled try:

RewriteEngine on

RewriteRule ^(.*)comments/blogid/(.*)[/]?$ /html/comments.php?blogid=$1

I think that will do it for you.  You'll want to validate as usual...

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Feb 11, 2006, at 11:41 PM, Murray @ PlanetThoughtful wrote:

Hi All,

I have a site hosted on apache 1.3.34 and I'd like to provide 'pretty' URLs for a particular PHP file.

A typical url to the file currently would be:

http://www.planetthoughtful.org/html/comments.php? blogid=fcc6c3c2d7756df3c3ed1900dbe1c004#351

I'm hoping to change this to something like:

http://www.planetthoughtful.org/html/comments/blogid/ fcc6c3c2d7756df3c3ed1900dbe1c004/

I don't really know how to achieve this using rewrite rules, so if anyone can give me any pointers, I'd very much appreciate it.

Much warmth,

Murray
---
"Lost in thought"
http://www.planetthoughtful.org

"Urban legends, superstitions, ghost
stories and folklore"
http://www.ulblog.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to