Hey, Kerm helped me with this before, but I never really understood it...

Ok, my .htaccess file is located at http://www.swivelgames.com/.htaccess
like most.

What I need is this...

when I goto page http://www.swivelgames.com/stream/*NAME*/

it should execute this file... http://www.swivelgames.com/special/streamer/db/find.php?file=*NAME*

Instead of just posting up a code for it, does anyone mind helping me out on how it works? I have tried various tutorials, and for some reason semi-live interaction works better than tutorials for me =.=

Anyone care to help me out here? I can probably look at the code myself and try to figure out what it all means if y'all are too lazy Laughing

Thanks in advance.

EDIT:
This is correct right?
Code:
RewriteRule ^stream/(.+) special/streamer/db/find.php?file=$1



EDIT 2:
Worked Very Happy Very Happy Very Happy

So basicly (.+) is anything in that area and of course the obvious part is that it turns into the string $1.

w00t xD
I'm getting a 404 not found when I try it... sure its working?

http://www.swivelgames.com/stream/test

I'm not sure, but I always thought .htaccess files go in the subdirectory itself...
If you look at the 404, its shows a different url than the one in the address bar. Thats really all I need. Plus the URL is based on a mysql database and query file was just recently moved.
.htaccess can go in any parent directory of the file. Apache searches recursively down the directory tree for an applicable htaccess.
swivelgames wrote:
If you look at the 404, its shows a different url than the one in the address bar. Thats really all I need. Plus the URL is based on a mysql database and query file was just recently moved.


No it isn't.

Quote:
The requested URL /stream/test was not found on this server.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement