Jump to content

powerspike

Members
  • Posts

    34
  • Joined

  • Last visited

    Never

Everything posted by powerspike

  1. last time i use a WAMP setup, i used apache2triad, worked out the box, and came with everything including a custom written controlpanel and 34 kitchen skins !
  2. If your going to go for a vps or dedi, it might be worth it, to get the server without an admin panel and hire someone to custom build a stream lined apache/php/mysql services for you (this is what i do my for ft/job). THe controlpanels with default installs generaly have a very high footprint for the webservices (some upto 50meg! - that's 50 of ram users for each request to your website - you run out extremely quickly), if you can get a admin who can streamline the apache/php down to bare mimium (for your needs) you might be able to get it down to 8-10 meg, which is a massive improvement, and also means you less a way less powerfull machine to get the same level of service out of it for you.
  3. I've never used that myself, but you might want to have a lok at xdebug, it has a plugin that loads into apache/php and you can get get profilling information straight from it, i haven't used that one personaly, i've only used the zend debugger & profiler myself (which is great) but you need to buy a copy of zend studio for it (AFAIK).
  4. RewriteRule ^([a-zA-Z\']+)$ city.php?city=$1 [NC,L] This should work so that www.ny-mafia.com/Baltimore will load the page www.ny-mafia.com/city.php?city=Baltimore
  5. RewriteRule ^sig/([a-zA-Z0-9]+),([a-zA-Z0-9]+),([a-zA-Z0-9]+),([a-zA-Z0-9]+),([a-zA-Z0-9]+),([a-zA-Z0-9]+),([a-zA-Z0-9]+),([a-zA-Z0-9]+).png sig/sig.php?img=$1,$2,$3,$4,$5,$6,$7,$8 [L] i'm not sure how the comma's will work, you might want to exchange them for -, i'm not at my desk right now, so i can't lookup the rewrite doc's. But that should hopefully work (done off the top of my head!)
  6. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([A-Z]+)/$ /index.php?page=$1 [NC,L] RewriteRule ^([A-Z]+)/([0-9]+)/$ /index.php?page=$1&var1=$2 [NC,L] greetings, the rewrite rules above would need the following urls to work /bob/ /bob/4/ it appears you want it the other way around ie /2/ /2/bob/ RewriteRule ^([0-9]+)/$ /index.php?page=$1 [NC,L] RewriteRule ^([0-9]+)/([A-Z]+)/$ /index.php?page=$1&var1=$2 [NC,L] That should give you want you requested above Please note, the NC means no Case, so it should match BOB bob BoB Bob bOB etc etc These rules can be put in your root .htaccess folder, If you want to put them in the folder 2 RewriteBase /2/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([A-Z]+)/$ /index.php?page=$1 [NC,L] that should do it.
  7. If you wish to use mod rewrite on this one, try the following RewriteCond %{HTTP_HOST} !^www\.php\.im RewriteRule (.*) http://www.php.im/$1 [L,R=301] (obviously replace the domain name with your own)
  8. RewriteEngine on RewriteRule ^([A-Za-z0-9-]+)/$ index.php?page=$1 [L] RewriteRule ^images/([0-9]+)/$ index.php?page=images&id=$1 [L] If i understand you correctly, that is what you wanted ? the first rewrite rule will match www.myurl.com/aboutus/ and call index.php?page=aboutus this way you can keep adding in more pages as you need. the second rule is for the images directly, and it will only match if the url is in the format www.myurl.com/images/23/ (with the backslash)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.