Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-05-2011, 09:51 PM   PM User | #1
roper22
New to the CF scene

 
Join Date: Dec 2011
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
roper22 is an unknown quantity at this point
mod_rewrite with a directory domain

Hey guys. I accidentally overwrote my .htaccess yesterday and it sent my site for a loop.

Pretty much my site is www.trportfolio.net/upload/, but I have a domain www.truploader.com that I use instead.

I need www.truploader.com/view_upload.php?id=352342
turned into www.truploader.com/view/352342

I've been struggling to fix it all morning, but I can't seem to get it right. What I DEFINITELY remember prior to breaking the file was that the code was something like so:

Code:
RewriteEngine on
RewriteBase /
RewriteCond (SOMETHING)
RewriteRule (SOMETHING ELSE)
This is what I have now but it just isn't working:

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule view/(.*)/ view_upload.php?id=$1
THANKS
roper22 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:44 PM.


Advertisement
Log in to turn off these ads.