Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-04-25, 03:18 PM   #1
b1ng0
I'm going to the backseat of my car with the woman I love, and I won't be back for TEN MINUTES
 
Join Date: Jan 2005
Posts: 85
Send a message via ICQ to b1ng0
Tons of mod_rewrite rules.. going to kick my servers ass?

Hi all, I have a site in the works that uses a dynamic script but plan on using mod_rewrite to make the site appear to be static and was wondering basically if it is going to be resource intensive or if there's a better way to go. Basically I'm going to be doing something like:

Code:
RewriteRule ^/models/tiffanyteen.html$ /page.php?id=1
... only with 2-4 thousand similar lines. Is this going to kick Apache's ass?

Thanks,
b1ng0
b1ng0 is offline   Reply With Quote
Old 2005-04-25, 03:31 PM   #2
swedguy
Vagabond
 
swedguy's Avatar
 
Join Date: Aug 2003
Posts: 2,374
Send a message via ICQ to swedguy
2-4 thousand lines is a lot, someone mentioned how much load it will add in the Fusker thread. But I don't remember it right now. But the gist of it was, keep it to a minimum. Here's another way to do it if it's possible:

RewriteRule ^/models/([a-zA-Z]+).html$ /page.php?id=$1

I assume you're pulling the id from a DB of some sort. Make the name unique and pull it from the DB that way instead: /page.php?id=tiffanyteen

1 line and that's it. Just a 10 second idea of mine
swedguy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:55 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc