[BlueOnyx:06729] Re: .htaccess problems

Jeffrey Pellin jeffrey at px2co.net
Thu Mar 17 09:48:18 -05 2011


Hi Frank,

Have you allowed these options to be overridden, if not you will get a 500
for sure.

Go to GUI > Server management > Network Services > Web and allow the
overrides, then the .htaccess will work.

To do this on just a site by site basis or just for a single directory
allow overides in the httpd includes for your site.

Regards

Jeffrey
 
On Thu, 17 Mar 2011 10:33:48 -0400, Franklin S Werren
<admin at chautauqualake.net> wrote:
> Hi All;
> 
> I am trying to use one of the Twitter clones out there
> and most of these come with an .htaccess file
> and every time I try it I get the dreaded server error
>  in the domain I am working on..
> 
> Ideas ???
> 
> The .htaccess file listed below is from Floopo !!
> 
> -- 
> Franklin S Werren admin at chautauqualake.net
> www.chautauqualake.net
> 
> Confidentiality Note:  This email and any attachments are confidential
and
> may contain privileged information intended for the addressee(s) only. If
> you are not the intended recipient, please notify us immediately and
> remove the email and any attachments from your system without storing,
> disclosing or copying all, or any part of it. The content of this email
> and attachments may contain data that falls within the scope of the Data
> Protection Act 1998. The unauthorized opening, use, recording,
disclosure,
> copying or alteration of this message is strictly forbidden under the
Data
> Protection Act 1998.
>  
> 
> 
> 
>
#*****************************************************************************************
> # Copyright (c) 2009 All rights reserved.
>
#*****************************************************************************************
> 
> 
>
#----------------------------------START------------------------------------------------#
> <Limit GET>
> order allow,deny
> allow from all
> </Limit>
> Options +FollowSymlinks
> RewriteEngine On
> #Options -Indexes #disable directory browsing
>
#----------------------------------------------------------------------------------------#
> 
> 
> 
> 
> 
> #-----------------------------------SUB FOLDER
> INSTALLATIONS-------------------------------#
> 
> # If you have installed floopo in a subfolder (example
> www.yourdomain.com/myblog)
> # You must edit the line below to include the folder name # EXAMPLE =>
> RewriteBase /myblog
> 
> RewriteBase /
> 
>
#----------------------------------------------------------------------------------------#
> 
> 
> 
> 
> 
> 
> 
> #-----------------------------------Items to
> skip-----------------------------------------#
> RewriteRule \.(css|jpe?g|gif|png|flv|swf)$ - [L]
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
>
#----------------------------------------------------------------------------------------#
> 
> 
> #Some "one" word links (must get these bofore member names - Add all
> generic pages here)
>
#------------------------------------------------------------------------------------------------------------
> #Folders
> RewriteRule ^plugins/([^/]*)$ plugins/$1 [L] #Plugins
> RewriteRule ^thirdparty/([^/]*)$ thirdparty/$1 [L] #Plugins
> RewriteRule ^themes/([^/]*)$ themes/$1 [L] #Themes
> RewriteRule ^lib/([^/]*)$ lib/$1 [L] #Lib
> RewriteRule ^content/([^/]*)$ content/$1 [L] #Content
> RewriteRule ^includes/([^/]*)$ includes/$1 [L] #Includes
> RewriteRule ^config/([^/]*)$ config/$1 [L] #Includes
> RewriteRule ^setup/([^/]*)$ setup/$1 [L] #Setup
> RewriteRule ^com/([^/]*)$ com/$1 [L] #Com
> RewriteRule ^lang/([^/]*)$ lang/$1 [L] #Lang
> RewriteRule ^notice$ index.php?option=com_notice&notice=$1 [L] #Notices
> 
> 
> 
> RewriteRule ^join$ index.php?option=com_register [L] #Join
> RewriteRule ^home$ index.php [L] #Home Page
> RewriteRule ^siteadmin/$ index.php?option=com_admin [L] #Site Admin
> RewriteRule ^siteadmin$ index.php?option=com_admin [L] #Site Admin
> RewriteRule ^pages/([^/]*)$ index.php?option=com_pages&load=$1 [L] #Usage
> Policy
> 
> 
> 
> #Member Default (Text) stream
>
#------------------------------------------------------------------------------------------------------------
> RewriteRule ^([a-zA-Z0-9]+)$ index.php?option=com_text&stream=$1 [L]
> #username
> RewriteRule ^([a-zA-Z0-9]+)/$ index.php?option=com_text&stream=$1 [L]
> #username/
> 
> 
> 
> # Varoius Streams - with page numbers
>
#------------------------------------------------------------------------------------------------------------
> RewriteRule ^public_stream$ index.php?option=com_text&stream=$1&page=$2
[L]
> #Text Updates - paginated
> RewriteRule ^public/updates/search/([0-9]+)$
> index.php?option=com_text&stream=public&page=$1&search=1 [L] #Text Search
> - paginated
> RewriteRule ^public/images/search/([0-9]+)$
> index.php?option=com_images&stream=public&page=$1&search=1 [L] #Image
> Search - paginated
> RewriteRule ^([^/]*)/updates/([0-9]+)$
> index.php?option=com_text&stream=$1&page=$2 [L] #Text Updates - paginated
> RewriteRule ^([^/]*)/images/([0-9]+)$
> index.php?option=com_images&stream=$1&page=$2 [L] #Image Updates -
> paginated
> RewriteRule ^([^/]*)/updates/following/([0-9]+)$
> index.php?option=com_text&stream=$1&type=following_updates&page=$2 [L]
> #Following Text Updates
> - paginated
> RewriteRule ^([^/]*)/images/following/([0-9]+)$
> index.php?option=com_images&stream=$1&type=following_images&page=$2 [L]
> ##Following Image
> Updates - paginated
> RewriteRule ^([^/]*)/updates/favorites/([0-9]+)$
> index.php?option=com_text&stream=$1&type=favorite_updates&page=$2 [L]
> #Favorite Text Updates -
> paginated
> RewriteRule ^([^/]*)/images/favorites/([0-9]+)$
> index.php?option=com_images&stream=$1&type=favorite_images&page=$2 [L]
> #Favorite Image Updates -
> paginated
> 
> 
> # Varoius Streams - no page numbers
>
#------------------------------------------------------------------------------------------------------------
> RewriteRule ^([^/]*)/updates$ index.php?option=com_text&stream=$1 [L]
#Text
> Updates
> RewriteRule ^([^/]*)/images$ index.php?option=com_images&stream=$1 [L]
> #Image Updates
> RewriteRule ^([^/]*)/updates/following$
> index.php?option=com_text&stream=$1&type=following_updates [L] #Following
> Text Updates
> RewriteRule ^([^/]*)/images/following$
> index.php?option=com_images&stream=$1&type=following_images [L]
> ##Following Image Updates
> RewriteRule ^([^/]*)/updates/favorites$
> index.php?option=com_text&stream=$1&type=favorite_updates [L] #Favorite
> Text Updates
> RewriteRule ^([^/]*)/images/favorites$
> index.php?option=com_images&stream=$1&type=favorite_images [L] #Favorite
> Image Updates
> 
> 
> 
> #Followings - with page numbers
>
#------------------------------------------------------------------------------------------------------------
> RewriteRule ^([^/]*)/following/([0-9]+)$
> index.php?option=com_following&stream=$1&type=1&page=$2 [L] #People a
> member is following - paginated
> RewriteRule ^([^/]*)/followers/([0-9]+)$
> index.php?option=com_following&stream=$1&type=2&page=$2 [L] #People
> following a member - paginated
> 
> 
> #Followings - no page numbers
>
#------------------------------------------------------------------------------------------------------------
> RewriteRule ^([^/]*)/following$
> index.php?option=com_following&stream=$1&type=1 [L] #People a member is
> following
> RewriteRule ^([^/]*)/followers$
> index.php?option=com_following&stream=$1&type=2 [L] #People following a
> member
> 
> 
> 
> #Members Account
>
#------------------------------------------------------------------------------------------------------------
> RewriteRule ^account/myaccount$ index.php?option=com_myaccount [L] #My
> Account
> RewriteRule ^account/myaccount/view$
index.php?option=com_myaccount&reset=1
> [L] #My Account reset
> RewriteRule ^account/myaccount/profile$
> index.php?option=com_myaccount&load=1 [L] #profile
> RewriteRule ^account/myaccount/changepassword$
> index.php?option=com_myaccount&load=2 [L] #change password
> RewriteRule ^account/myaccount/preferences$
> index.php?option=com_myaccount&load=3 [L] #preferences
> RewriteRule ^account/myaccount/avatar$
> index.php?option=com_myaccount&load=4 [L] #profile
> RewriteRule ^account/myaccount/webprofile$
> index.php?option=com_myaccount&load=5 [L] #profile
> RewriteRule ^account/myaccount/webprofile$
> index.php?option=com_myaccount&load=6 [L] #profile
> RewriteRule ^account/myaccount/messages$
> index.php?option=com_myaccount&load=6&box=1 [L] #Inbox
> RewriteRule ^account/myaccount/inbox$
> index.php?option=com_myaccount&load=6&box=1 [L] #Inbox
> RewriteRule ^account/myaccount/sent$
> index.php?option=com_myaccount&load=6&box=2 [L] #Sent email
> RewriteRule ^account/myaccount/new$
> index.php?option=com_myaccount&load=6&box=3 [L] #Compose new email
> RewriteRule ^account/myaccount/customize$
> index.php?option=com_myaccount&load=7 [L] #Compose new email
> RewriteRule ^account/logout$ index.php?option=com_login&logout=1 [L]
> #Logout
> 
> 
> #Replies - with page numbers
>
#------------------------------------------------------------------------------------------------------------
> RewriteRule ^([^/]*)/replies/updates/([^/]*)$
> index.php?option=com_text&stream=$1&type=replies&page=$2 [L] #Text
replies
> - paginated
> RewriteRule ^([^/]*)/replies/images/([^/]*)$
> index.php?option=com_images&stream=$1&type=replies&page=$2 [L] #Image
> replies - paginated
> 
> 
> 
> #Replies - no page numbers
>
#------------------------------------------------------------------------------------------------------------
> RewriteRule ^([^/]*)/replies/updates$
> index.php?option=com_text&stream=$1&type=replies [L] #Text replies
> RewriteRule ^([^/]*)/replies/images$
> index.php?option=com_images&stream=$1&type=replies [L] #Image replies
> 
> 
> #Add content
>
#--------------------------------------------------------------------------------------------------------------
> RewriteRule ^new/picture$ index.php?option=com_images&action=add [L] #
Add
> new picture
> 
> 
> #--------------------------------------- SOME SIMPLE BLOCKS
> -----------------------------#
> RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
> RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
> RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
> RewriteCond %{QUERY_STRING} SELECT(=|\[|\%[0-9A-Z]{0,2}) [OR]
> RewriteCond %{QUERY_STRING} UNION(=|\[|\%[0-9A-Z]{0,2}) [OR]
> RewriteRule ^(.*)$ index.php [F,L]
> #--------------------------------------- END BLOCKS
> -------------------------------------#
> 
> ErrorDocument 404 /404.php



More information about the Blueonyx mailing list