I’ve been looking to the answer to this question for a few days and can’t seem to find it. I have a website, http://www.trportfolio.net, and on that, I am hosting an upload website http://www.trportfolio.net/upload/
I have purchased the domain http://www.truploader.com for that directory, and now I’m having trouble with a mod_rewrite. I need to rewrite this: http://www.truploader.com/view_upload.php?id=347343
to http://www.truploader.com/view/347343/
Please keep in mind that the actual path for both of these is http://www.trportfolio.net/upload/view_upload.php?id=347343. I believe it is because of this curveball that I’m having so much trouble figuring it out. I know I need a RewriteBase and a RewriteCond or two, but any help is appreciated. Thank you!
Try putting this in an appropriate place in your document root’s .htaccess file: