vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Base url Redirect - won't function. (https://vborg.vbsupport.ru/showthread.php?t=295182)

WildRover 02-16-2013 11:46 AM

Base url Redirect - won't function.
 
Hello, I can't figure what's gone wrong here.

The url of my site is http://www.xpower-racing.com - if you click here it shows the file structure.

The Forum is: http://www.xpower-racing.com/forum/forum.php

It stopped functioning after the Forum was updated.

There's a gallery at http://www.xpower-racing.com/gallery

If I place a redirect using Cpanel from http://www.xpower-racing.com to http://www.xpower-racing.com/forum/forum.php The gallery then becomes the same and is unusable.

Help....:mad:

nhawk 02-16-2013 12:23 PM

The problem is you don't have anything in your home directory telling browsers where to go.

Create an index.php file and put this code in it...
PHP Code:

<?php
header
("Location: http://www.xpower-racing.com/forum/forum.php");
exit;
?>

Save it to your home directory, which is what shows now when you go to http://www.xpower-racing.com

LifesGreatestGift 02-16-2013 12:29 PM

is that something new in PHP?

thought they needed to be
<?php

?>

never seen that way before
{?php

?}

nhawk 02-16-2013 12:31 PM

Oops.. it's early here and I'm still having my first coffee..

Corrected it.

LifesGreatestGift 02-16-2013 12:33 PM

I wasn't trying to be sarcastic, I just wasn't sure if that was something new or not. no problem. Kind of how they went from commenting with "#" to using ";" in ini files :) I don't keep up with the changes. If i see someone doing something "new" I assume that it may be a change with PHP.

nhawk 02-16-2013 12:40 PM

Nope, nothing new. Just the same old brain not firing on all cylinders until my second cup of coffee. :D

I didn't think you were being sarcastic and I appreciate your pointing out the error.

WildRover 02-16-2013 12:42 PM

Quote:

Originally Posted by nhawk (Post 2404607)
The problem is you don't have anything in your home directory telling browsers where to go.

Create an index.php file and put this code in it...
PHP Code:

<?php
header
("Location: http://www.xpower-racing.com/forum/forum.php");
exit;
?>

Save it to your home directory, which is what shows now when you go to http://www.xpower-racing.com

nhamk - you are an absolute saviour. Thankyou for helping me out - much appreciated.


All times are GMT. The time now is 10:50 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.01212 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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