PDA

View Full Version : .htaccess // php



MegaEdition
13-06-2007, 10:15 AM
iv written a php script and to go with a .htaccess rewite file


Options +Indexes
RewriteEngine on
RewriteRule ^sigs/(.*).png$ index.php?name=$1would mean that url/sigs/<name>.png would use the url url.php?name=<name>

i need to make it so url/sigs/<quests>/<name.png would use the url url.php?name=<name>&quests=<quests> anyone got anyideas?

Eric30
13-06-2007, 11:27 AM
This is not tested:

but change the bottom to something like:

RewriteRule ^sigs/(.*)/(.*).png$ index.php?name=$2&quests=$1

MegaEdition
13-06-2007, 11:33 AM
This is not tested:

but change the bottom to something like:

RewriteRule ^sigs/(.*)/(.*).png$ index.php?name=$2&quests=$1that just leaves the space where it is blank

Eric30
13-06-2007, 12:53 PM
that just leaves the space where it is blank

:S What?

MegaEdition
13-06-2007, 01:04 PM
http://fally.slayerhq.co.uk/dynsig/1/sigs/244/teh_lastp.png
should be
http://www.fally.slayerhq.co.uk/dynsig/1/?name=teh_lastp&quest=244

Eric30
13-06-2007, 01:07 PM
Works for me?

MegaEdition
13-06-2007, 01:18 PM
fixed it d.w u was write im just bad at spelling =]

Want to hide these adverts? Register an account for free!