Log in

View Full Version : Another Rewrite Question


Rebecca217
03-17-2008, 09:57 PM
Hello all,

I'd like to use a second domain name to point to a specific subcategory of my forums. Can anyone assist me with the correct rewrite rules(s) for my .htaccess file?

Any help is greatly appreciated. :)

Rebecca

(And before anyone asks, yes I do have two licenses ;))

penagate
03-18-2008, 02:58 AM
You don't need two licences to do that if your other domain name encompasses the subcategory.


RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$
RewriteRule ^$ forumdisplay.php?f=X [L,QSA]



Other URLs will work with no changes as long as your domain is correctly pointed to the server. The rewrite is only needed to change the home page on your second domain name to the forumdisplay page of that subcategory.

Rebecca217
03-18-2008, 02:46 PM
Penagate, thank you so much! This looks like exactly what I need. :)

The second domain has its own style, and is a subcategory of the first domain. They're set up to look like sister sites. Is this sort of thing ok under just one license? Just out of curiosity... as I mentioned I do have two licenses for this setup. But if that's the case, I wouldn't mind using the second license somewhere else. ;)

Rebecca

penagate
03-18-2008, 10:48 PM
Actually, I think I was wrong. If you show or hide any subforums based on the domain name then you do need two licences. My apologies.

toonysnn
03-18-2008, 11:06 PM
As long as it's visible that it's not two sites, but one site with two different domains and links are still visible for the other forum(s) on it, it should be fine, but you might want to open a support ticket asking about this for a official response.