vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Another Rewrite Question (https://vborg.vbsupport.ru/showthread.php?t=173342)

Rebecca217 03-17-2008 09:57 PM

Another Rewrite Question
 
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.


Code:

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.


All times are GMT. The time now is 11:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01019 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete