vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   HTACCESS on a SPECIFIC page? (https://vborg.vbsupport.ru/showthread.php?t=243362)

dearinfinity 05-27-2010 12:34 AM

HTACCESS on a SPECIFIC page?
 
Hi everyone,

Quick question. I want to use htaccess to block down certain forums (say the following forum ids: 4, 30, 68). Is there any intuitive way of doing this? I don't see how to relate using htaccess with the mod cp / admin cp to using it on specific forum and post IDs. Anyone have any ideas? Thanks!

Lynne 05-27-2010 03:19 AM

.htaccess is used to protect a whole directory, not a file. You can set a password for each of those forums in the Forum Manager though.

dearinfinity 05-27-2010 08:47 AM

Hi, not looking for password protection on forums. I am looking to use htaccess to block users from accessing a certain forum as I want to lock them out of content in this manner. If it was possible to have the forum links on the forum display template to somehow call the thread from a different folder (/forums/premium/ instead of /forums/) I feel like it might work.

Does anyone know how to have forumdisplay.php load a thread from a different folder than the root?

Boofo 05-27-2010 08:51 AM

You can use the forum permissions to do that per usergroup.

dearinfinity 05-27-2010 11:22 PM

I need to do it using strictly HTACCESS. Anyone have any ideas?

your24hourstore 05-27-2010 11:42 PM

well if those two dont know your probibly out of luck ..cause they would know

Zachery 05-27-2010 11:57 PM

<a href="http://forums.devshed.com/showpost.php?p=28963&postcount=4" target="_blank">http://forums.devshed.com/showpost.p...63&postcount=4</a>

Boofo 05-28-2010 12:09 AM

He was looking to block the files without password protecting them. I know of no way to do that.

Zachery 05-28-2010 12:17 AM

Oh, misread that, yea, dude if you don't want to use the permission systems alreadyb uilt in you're SOL.

Boofo 05-28-2010 02:17 AM

The permissions system is the best way to go and it will do exactly what you are wanting to do per usergroup. htaccess works on a whole different level, I'm afraid.


All times are GMT. The time now is 12:16 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.01167 seconds
  • Memory Usage 1,715KB
  • 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
  • (10)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