vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Directory Index (https://vborg.vbsupport.ru/showthread.php?t=144705)

|Jordan| 04-12-2007 11:15 PM

Directory Index
 
When users go to my site, its takes them straight to the forum (forum is in main directory). I renamed the forum script to "forum.php", i have another page set as "index.php", yet when the url is typed by itself, it still goes to forum.php. Why is it doing this? How can i make it go to index.php instead? I can't use htaccess redirect because im hosting another site on the account and the other domain will be redirected to the primary domain.

SirFlash 04-12-2007 11:26 PM

Web browsers automatically assume that index (.*) is the page they should go to, so i don't know why it's going to forum.php for you.

I'm not sure if this will work for you - but if you haven't cleared your web browser cache, do that (in your browser settings).

If you're using Windows, you can also do this by going to your msdos command prompt, and typing: ipconfig /flushdns (to clear the DNS resolver cache).

I'm just thinking maybe you successfully made the change, but your web browser is still loading old cache and causing the same old page to be loaded.

But if that's not the case, then i don't know. Good luck!

|Jordan| 04-13-2007 12:11 AM

I figured it out.

In my .htaccess file i had the following line:

RewriteRule ^$ forums.php

Renaming forum.php to index.php fixed it.


All times are GMT. The time now is 11:48 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.01015 seconds
  • Memory Usage 1,706KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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