Jerec Posted June 11, 2013 Share Posted June 11, 2013 This is probably an easy answer for most, but mod_rewrite is still a lot of black magic to me.. I'd like.. http://blargh.com/attachments/99d7c5cd00cf8cb27cebabad100d594546cc4eb227aac7f4d243877be130a498 (last part is file hash) to be processed as.. http://blargh.com/attachments/index.php?a={above file hash here} and this is what I've put into .htaccess (which is located at the root).. RewriteRule ^attachments/([A-Za-z0-9-]+)$ /attachments/index.php?h=$1 [NC,L] The result I get is essentially nothing, as though the rule wasn't there, but chances are I just plain did it wrong. Thanks! Link to comment Share on other sites More sharing options...
MarkT Posted July 18, 2013 Share Posted July 18, 2013 To be honest, I prefer IIS, it's a lot easier to use as it has a management panel for you to use for rewrite rules. I'll have a look, but i suggest you look at some mod_rewrite tutorials and get a basic knowedge before you try to do advanced rules, for example, not allowing images etc. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now