PDA

View Full Version : HTACCESS on a SPECIFIC page?


dearinfinity
05-27-2010, 12:34 AM
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.