vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   Apache server question (https://vborg.vbsupport.ru/showthread.php?t=248168)

GSbiker 08-07-2010 01:04 PM

Apache server question
 
This is probably a easy question but I just can't figure it out. I run Apache on a in-house Windows box. My url is www.thewirelessregister.com. When that url is accessed it goes to a splash page with a link to www.thewirelessregister.com/fourms/.

How do I configure Apache to go directly to the forum when www.thewirelessregister.com is entered in the browser? It's probably something in the vhosts.conf file.

Any help would be appreciated.

snakes1100 08-07-2010 02:24 PM

Add a .htaccess file to your root/www folder with this in it, that assumes you have mod_rewrite configured into apache.

Code:

RewriteEngine on
rewritecond %{http_host} ^thewirelessregister.com [nc]
rewriterule ^(.*)$ http://www.thewirelessregister.com/forums/$1 [r=301,nc]


Angel-Wings 08-07-2010 06:37 PM

Or just move the forum directory one level down. Then you can disable .htaccess to have some speed-up.
If you don't want or can move the files, maybe better do it directly in the Vhost configuration that you again disable .htaccess parsing

Boofo 08-07-2010 08:02 PM

Make a file called index.php in your domain root with the following content:

PHP Code:

<?php header('Location: http://www.thewirelessregister.com/fourms/'); ?>


GSbiker 08-08-2010 08:12 PM

Quote:

Originally Posted by Boofo (Post 2080616)
Make a file called index.php in your domain root with the following content:

PHP Code:

<?php header('Location: http://www.thewirelessregister.com/fourms/'); ?>


Perfect. Thanks. :up:

Really worked good when I spelled forums correctly. :D

Boofo 08-08-2010 08:18 PM

Quote:

Originally Posted by GSbiker (Post 2081011)
Perfect. Thanks. :up:

Really worked good when I spelled forums correctly. :D

I have used that method for years. ;)

Marco van Herwaarden 08-09-2010 04:07 AM

It is not a method you should use on a busy site, as it will have a negative impact on performance.

Boofo 08-09-2010 04:14 AM

That is the first time I have ever heard that said about doing it that way. How so?

Marco van Herwaarden 08-09-2010 04:15 AM

Because it will have 2 pageloads.

Boofo 08-09-2010 06:17 AM

Quote:

Originally Posted by GSbiker (Post 2081011)
Perfect. Thanks. :up:

Really worked good when I spelled forums correctly. :D

Sorry about that. My keebord kant spel, it seams. ;)


All times are GMT. The time now is 05:45 AM.

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.01694 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete