vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   htacess redirect? (https://vborg.vbsupport.ru/showthread.php?t=298769)

initiald 06-05-2013 09:03 PM

htacess redirect?
 
Hello, how do you write a redirect condition in htacess y if someone types in exactly http://www.example.com/folder/, it will redirect to exactly http://www.example.com/folder.php and not affecting any files inside the /folder?

Thanks

Brandon Sheley 06-05-2013 09:50 PM

you can try

Code:

RedirectMatch 301 ^/folder/ http://www.mydomain.com/file.php

t-j 06-05-2013 11:37 PM

or try

Code:

RedirectMatch 301 ^/folder/ http://www.mydomain.com/forum.php
to send them back to forum home

Brandon Sheley 06-06-2013 02:07 AM

am I going blind or is that the same thing I posted?..lol

John Lester 06-06-2013 05:25 AM

Quote:

Originally Posted by Brandon Sheley (Post 2426041)
am I going blind or is that the same thing I posted?..lol

Yup you're blind ... you put file.php he put forum.php :D

snakes1100 06-06-2013 07:21 AM

Yea, kinda like posting at the .com, the support staff post right hours later after you help someone & post asking the same thing, i think they're getting paid by the post on support.

initiald 06-07-2013 08:36 AM

Quote:

Originally Posted by Brandon Sheley (Post 2426015)
you can try

Code:

RedirectMatch 301 ^/folder/ http://www.mydomain.com/file.php

Oh thanks.

Didn't realize adding / in front of folder works.

I have try RedirectMatch 301 ^folder/ http://www.mydomain.com/file.php and this doesn't work as to what I want. Thank you very much!


All times are GMT. The time now is 08:32 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.01234 seconds
  • Memory Usage 1,717KB
  • 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_code_printable
  • (2)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