PDA

View Full Version : 301 .htaccess and IRMs


Matt
04-03-2007, 01:51 PM
I want to set up 301 redirects for my primary account at FQ, but have IRMs that are affected by the .htaccess file. I've searched the forums, but didn't quite find what I'm looking for (although this seems close: http://www.aota.net/forums/showthread.php?t=20270)

Here's a simplified version of the .htaccess file:

Options MultiViews
DirectoryIndex index

Redirect 301 /index.php https://www.domain.com/
Redirect 301 /url1.php https://www.domain.com/url_1.php
Redirect 301 /url2.php https://www.domain.com/url_2.php


If works fine for the primary domain, but all IRMs show the following:
Forbidden
You don't have permission to access / on this server.


Is it possible to put a .htaccess in the IRM directories that essentially says "ignore the parent .htaccess file?" It's unfortunate that the IRMs even see anything above their own directory (I wonder if there are security implications).

Thanks,
Matt

kitchin
04-03-2007, 04:03 PM
FutureQuest has a custom Apache directive "RedirectControl" for that, I think. Try this:
http://www.aota.net/forums/showthread.php?postid=104354#post104354

Matt
04-04-2007, 03:18 PM
Thanks, that sounds like exactly what I'm looking for! BTW (FQ), is there some central repository that documents all of the custom technical features FQ offers?

Melissa
04-05-2007, 07:11 PM
I don't know how many things are being grouped under "custom technical features FQ offers", but the knowledgebase (http://service.FutureQuest.net/index.php?_a=knowledgebase) and the forums are where the vast amount of information can be found. Here's an FAQ on RedirectControl, in case it may help:
RedirectControl - Turning Off Redirects in Child Directory (http://service.FutureQuest.net/kb561)

Matt
04-06-2007, 12:09 AM
Melissa,

Thanks for that link. There is a lot of useful info scattered about among the knowledgebase, forums, tutorials, and even support tickets. Those are a lot of places to check and I think extracting the useful tips in the forums and elsewhere would be a tremendous benefit to customers and FutureQuest. Starting with a repository of FQ-specific tweaks/ hacks would be a great place to start.

That's my 2 cents -Matt

kitchin
04-06-2007, 02:36 AM
Like, a page that summarized FQ's enhancements vs. standard LAMP (Linux/Apache/MySQL/PerlPHPPython) would be cool. Here's what comes to mind:
1. CNC instead of cPanel or whatever.
2. Email filtering customized variant of qmail?
3. MySQL on specially tuned servers (not localhost).
4. PHP enhancement: SecureMode (shared hosting more like virtual server).
5. Apache enhancement: RedirectControl.
6. SSL: lock out after a few bad password attempts.
7. Servers block bad IP blocks and aggressively clamp on robot attacks.
8. Little or no closed source server software (no frontpage).
Etc. Like a technical FAQ based on things that come up fairly often in the forums but might be hard to search on.