Need help with mod_rewrite

scheda

Regular Member
Joined
May 4, 2010
Messages
229
Reaction score
61
Hey guys,

I've got a stupidly simple rewrite that I'm having trouble with.

Basically I just want one URL to resolve as another.

So, if a user visits /libs/file.html I want it to load /libs/loader.php

Here's what I have now - that does not work...

Code:
# Enable Rewrite Engine
RewriteEngine on

#Create friendly URL
RewriteRule ^/libs/file\.html$ /libs/loader\.php [L]

Any idea on how to make this work properly?
 
Try

Code:
# Enable Rewrite Engine
RewriteEngine on

#Create friendly URL
RewriteRule ^/libs/file\.html$ /libs/[B]loader.php[/B] [L]
 
Try

Code:
# Enable Rewrite Engine
RewriteEngine on

#Create friendly URL
RewriteRule ^/libs/file\.html$ /libs/[B]loader.php[/B] [L]

Nope, no go unfortunately. I just get a 404 error. Thanks though.
 
Actually, I was able to figure out a better way to handle what I needed done.

Thanks for your help.
 
And how did you do that if you dont mind me asking?
There might be other people running into the same problem... Can't just leave them hanging like that.
 
Back
Top