The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi All,
I'm wondering, how would I rewrite this: image.php?u=# to sig_#.png Thanks! - Pc1203 |
#2
|
||||
|
||||
![]() Code:
RewriteEngine On RewriteRule ^sig_(\d{1,11})\.png$ image.php?u=$1 |
#3
|
|||
|
|||
![]()
Well, when I type "http://mydomain.tld/sigs/sig_9.png" I get a 404 error. I placed:
Code:
RewriteEngine On RewriteRule ^sig_(\d{1,11})\.png$ image.php?u=$1 - Pc1203 |
#4
|
||||
|
||||
![]()
I just tested it on my host and it works. I placed the htaccess file in the same directory as the image.php file.
Btw, I guess that # is only gonna be a numeric value? Maybe try: http://mydomain.tld/sig_9.png ?? Not sure where your image.php file is located. |
#5
|
|||
|
|||
![]()
Ok, here's where it is:
mydomain.com/dev/profilesys/image.php I'm calling it from: mydomain.com/dev/profilesys/sig_9.png Here is what I want: mydomain.com/dev/profilesys/sig_9.png to point to: mydomain.com/dev/profilesys/image.php?u=9 - Pc1203 __________________________________________________ _______________ EDIT: Here is the "working" code: Code:
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^sig_(.+)\.png/?$ image.php?u=$1 |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|