Help!

New to mod_rewrite? This is a good place to start.

Help!

Postby jmnovak » Wed Dec 18, 2002 12:47 pm

I'm trying to put up some forum software up and the real path of the software lies in /www/domain.com/forum. When a user goes to this url it brings up the index.php. But there are different sites that exist here. Ideally I would want someone to type in http://www.domain.com/forum/site1 (site2, site3, etc). Unfortunately, the software requires http://www.domain.com/forum/index.php?site=site1 (site2, site3, etc).

I've tried creating a rewrite rule in an .htaccess file in the /www/domain.com/forum directory, but no luck in any kind of output. Am I doing this correctly? Any help would be greatly appreciated! :D

Best Regards,

Jason

BTW-My .htaccess file looks like the following
------
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/site1 http://www.domain.com/forum/index.php?site=site1
</IfModule>

-----
Man, do I feel like an idiot! :x-mas:
jmnovak
 
Posts: 1
Joined: Wed Dec 18, 2002 12:39 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 12 guests

cron