"mod_rewrite" means :
Put this (or, edit yours - toy with it) in your
.htaccess file in your root web server directory :
- Code: Select all
SetEnv REGISTER_GLOBALS 0
SetEnv ZEND_OPTIMIZER 1
SetEnv MAGIC_QUOTES 1
SetEnv PHP_VER 5
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule ^/?roster/addons/siggen/(sig|av)/(.*).png$ ./roster/addons/siggen/$1.php?name=$2&saveonly=0
Let go by it one by one:
SetEnv REGISTER_GLOBALS 0
SetEnv ZEND_OPTIMIZER 1
SetEnv MAGIC_QUOTES 1
SetEnv PHP_VER 5
Options +FollowSymlinks
These are the commands that:
Don't bother : I need these for my server - please understand that there are 3 trillion types of apache web servers on this planet - and every hoster use a "different one" - go figure. Maybay because otherwise things would be easy, and site admins would be without a job very soon.
[ok,
SetEnv PHP_VER 5 means : use PHP version 5 - because default it will be version 4 for my hoster
]
RewriteEngine On
RewriteBase /
RewriteRule ^/?roster/addons/siggen/(sig|av)/(.*).png$ ./roster/addons/siggen/$1.php?name=$2&saveonly=0
Now where at it.
First line : this must be logic, if not : go Google.
Second line : I NEED this, you meaby not. If not, it will not bother you when you put it in there.
Third : now we are there at last :
Just copy this one !
Please note that MY roster directory is in a directory named .... /roster
(Smart thing, no ?)
Another might be exception : the line starts with "RewriteRule ^
/?....
You might not be needing the "
/?" part. I need it (I'm at
www.ovh.fr...). I struggled for 1 week to find this 'small' issue, but found my answer on the hosters forum .... (hosters always have a forum/wiki/FAQ/hotline/manual/blogs/..... where members / renter of sites can yell and scream WHY things are different on their hoster , because it's 'different' on another hoster.
Please note that this is not an univeral
.htaccess file : this one worked for
me. Yours, of cours, will be (great chance) different ! Welcome to the club
Please note that toying with an
.htaccess file can have very nice and very bad side effect for your site.
Seeing statement that you don't understand 'well' : My God, go Google !!!