vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   A little help with .htaccess (https://vborg.vbsupport.ru/showthread.php?t=41614)

JJR512 07-28-2002 02:22 AM

A little help with .htaccess
 
I know this isn't PHP or MySql, but didn't see a better place to put it, and hope someone can help.

I recently moved my forums to the root web level. They used to be in a subdir called forums (http://www.jjr512.com/forums), then I made a subdomain for that subdir so that http://forums.jjr512.com also worked. But now it's just http://www.jjr512.com.

Is there something I can put in my .htaccess file so that any requests for something in the /forums subdir gets redirected to the same file in the root dir? In other words, to redirect http://forums.jjr512.com OR http://www.jjr512.com/forums to http://www.jjr512.com.

mr e 07-28-2002 06:18 PM

Well you could stick an index.php in the sub dir and put this code in it

PHP Code:

header ("Location: h ttp://www.jjr512.com/"); 

without the space between the h and ttp...it's just a redirect, but it's easy

Logician 07-29-2002 11:59 AM

have u checked that one?

https://vborg.vbsupport.ru/showthrea...ight=.htaccess

JJR512 07-29-2002 07:32 PM

What I'm trying to do is redirect http://forums.jjr512.com to http://www.jjr512.com.

None of the redirect methods I've seen described for use in .htaccess seem to work. I've tried:

Redirect forums.jjr512.com/ http://www.jjr512.com/
and
Redirect http://forums.jjr512.com/ http://www.jjr512.com/

Neither of these works.

Logician 07-30-2002 09:05 AM

Try this:

Redirect http://forums.jjr512.com http://www.jjr512.com

put this in your .htaccess file and PUT THIS file in your root dir.

Or try this:

Redirect / http://www.jjr512.com

put this in your .htaccess file and PUT THIS file in your forums.jjr512.com dir.

It should work.


All times are GMT. The time now is 05:51 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.01110 seconds
  • Memory Usage 1,718KB
  • 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_php_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