mod_rewrite question

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
toasty2
Forum Contributor
Posts: 361
Joined: Wed Aug 03, 2005 10:28 am
Location: Arkansas, USA

mod_rewrite question

Post by toasty2 »

Ok, I want to put mod_rewrite for apache to work. I have this site structure:
(Root Folder)
Subdomains
test
-index.html
forums
-index.php

Ok, so I need for when people goto /subdomains/test to have the url rewritten to /subdomains/forums, but...How do I change the current rewrite path. Because it will be trying to rewrite the url to /subdomains/test/subdomains/forums
Or, should I just use the full url?
Edit: I tried using the full url, but that didnt work
I tried this:

Code: Select all

RewriteEngine On
RewriteRule ^/forums$ htp://forums.randomresources.com/360kil
Post Reply