LiveWire Peer Support Network

Printable Version of Topic "What do you use to prettify your URLs?"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Programming & Application Development (http://www.golivewire.com/forums/forum-211-s-0.html)
---- What do you use to prettify your URLs? (http://www.golivewire.com/forums/peer-yetobpa-support-a.html)


-- Posted by Mediocre at 6:29 pm on Dec. 30, 2008

A lot of popular applications rewrite everything to the index file and include from there. I, on the other hand, have a mod_rewrite entry for each page, based on the assumption that it would be faster (and simpler) to let Apache handle everything.

So my .htaccess has about 60 lines like this:
Code:
RewriteRule ^reply/?([0-9]+)?/?([0-9]+)?/?$ view.php?action=reply&pid=$1&cid=$2 [L]

I have never seen anyone else do this. Why? Is it a bad idea?


www.golivewire.com