vb.org Archive

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

Elmer 08-09-2005 01:29 PM

Redirection
 
I need to make a redirect using the variable _SERVER["REQUEST_URI"]
this is to grab the url the user request and then use it to redirect the users to the new forums and to the page requested.

I need to know wich file shoul i edit, cause doing it in the index.php doesn't make any effect. perhaps global.php?

Thanks

Andreas 08-09-2005 01:50 PM

mod_rewrite?

Elmer 08-09-2005 02:03 PM

Quote:

Originally Posted by KirbyDE
mod_rewrite

Don't know what exactly is mod_rewrite... I'm not a codder but just though that i could figure out how to make a redirect using the above function.
I just changed domain and need to redirect people to the new but letting them get exactly the page they wanned.

If you have suggestions, they are very wellcome.

Boofo 08-09-2005 05:20 PM

He means in your htaccess file. ;)

Elmer 08-09-2005 10:32 PM

Quote:

Originally Posted by Boofo
He means in your htaccess file.

How could I do that?

I need help on this :(

is there a way to know the requested url from a user? let say a url like www.site.com/forum/showthread.php?t=322

and redirect him to
www.site2.com/forum/showthread.php?t=322

safiel 08-10-2005 01:23 AM

<a href="http://httpd.apache.org/docs/2.0/misc/rewriteguide.html" target="_blank">http://httpd.apache.org/docs/2.0/misc/rewriteguide.html</a>

Elmer 08-10-2005 01:40 AM

Quote:

Originally Posted by safiel

I got it working this way

redirect permanent /foros/index.php http://asdf.com/foros/index.php
redirect permanent /foros/foros.php http://asdf.com/foros/foros.php
redirect permanent /foros/showthread.php http://asdf.com/foros/showthread.php
redirect permanent /foros/forumdisplay.php http://asdf.com/foros/forumdisplay.php
redirect permanent /foros/member.php http://asdf.com/foros/member.php
redirect permanent /foros/arcade.php http://asdf.com/foros/index.php
redirect permanent /foros/chat.php http://asdf.com/foros/chat.php
redirect permanent /foros/member.php http://asdf.com/foros/member.php
redirect permanent /foros/calendar.php http://asdf.com/foros/calendar.php
redirect permanent /foros/search.php http://asdf.com/foros/search.php


I had to add a line for every file.php hmm


All times are GMT. The time now is 12:41 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.05456 seconds
  • Memory Usage 1,730KB
  • 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
  • (3)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