DJCheezy Posted May 30, 2007 Report Share Posted May 30, 2007 Ok I am pretty new to all this server stuff.As of right now I am hosting my own website. Using Uniform Server I want to runt a script. But everytime I have a .htaccess file in my WWW directory it says access forbidden. Im planning on hosting my other site which is a social networking site simular to myspace.Short urls etc what file do I need to edit to make it where I can have short urls LEO etc All that.? I also use dragonfly CMS there is an option to make it instead of index.phpact=fourms or some crap I can turn it on to where the link is fourms.html but it says Not found because server settings or something. So Please help me out here LOL. (So confused) Quote My Website http://www.djcheezy.com/ My Live Radio/Shoutcast Stream (Only active when I have the Shuotcast Server Online) http://www.djcheezy.com:8000/ Link to comment Share on other sites More sharing options...
olajideolaolorun Posted May 30, 2007 Report Share Posted May 30, 2007 A. You might need more support from the makers of the software you are using. B. What do you mean you get the Forbidden error when you use the .htaccess? What exactly is in the .htaccess file, post it up here? C. As i said, you might need more support from the software maker. You need to ask them how to use mod_rewrite with their software. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
DJCheezy Posted May 30, 2007 Author Report Share Posted May 30, 2007 This is the one for Dragonfly CMSUniForm Server Is Installed: C:\Server\Uniform Server # CPG Dragonfly CMS # Copyright (c) 2004-2006 by CPG-Nuke Dev Team, dragonflycms.org # Released under the GNU GPL version 2 or any later version # $Source: /cvs/html/.htaccess,v $ # $Revision: 9.18 $ # $Author: nanocaiordo $ # $Date: 2007/01/17 03:24:44 $ # Remove the pound sign on these 3 for production sites # if your server doesn't allow it then a Error 500 is given # php_flag display_errors off # php_value error_reporting 0 # php_flag register_globals 0 # flood protection # deny most common except .php <FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|bin|spd|theme|module)$"> deny from all </FilesMatch> # disable access to config.php and .ht* from a browser <FilesMatch "^(config\.php|\.ht)"> Deny from all </FilesMatch> <FilesMatch "error\.(php|gif)"> allow from all </FilesMatch> # if you use LEO, mod_rewrite is necessary <IfModule mod_rewrite.c> RewriteEngine On # Check for Santy Worms and redirect them to a fail page #------------------------------------------------------------------- # Variant -1 # uncomment if you dont use LWP # RewriteCond %{HTTP_USER_AGENT} ^LWP [NC,OR] # Variant -2 RewriteCond %{REQUEST_URI} ^visualcoders [NC,OR] # Variant -3 RewriteCond %{QUERY_STRING} rush=([^&]+) [NC,OR] # Variant -4 RewriteCond %{HTTP:x-moz} ^prefetch [NC,OR] RewriteCond %{X-moz} ^prefetch [NC,OR] # block local file, sql and remote attacks RewriteCond %{QUERY_STRING} =../ [NC,OR] RewriteCond %{QUERY_STRING} "%20UNION" [NC,OR] RewriteCond %{QUERY_STRING} =http:// [NC] # deny them RewriteRule ^.*$ - [F] #------------------------------------------------------------------- RewriteCond %{REQUEST_FILENAME} -f [NC,OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.*)$ - [L] # if you use LEO and CPG-Nuke is installed in a sub-directory like '/html', # remove that # before RewriteBase and rename /html to the path of the sub-directory # RewriteBase /html # RewriteRule ^index\.html /index.php RewriteRule ^([a-zA-Z0-9_=+-]+)(/|\.html)$ index=$1 [L,S=5] RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)(/|\.html)$ index=$1&file=$2 [L,S=4] RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ index=$1&file=$2 [L,S=3] RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/(.*)(/|\.html)$ index=$1&file=$2&$3 [L,S=1] RewriteRule ^([a-zA-Z0-9_]+)/(.*)(/|\.html)$ index=$1&file=index&$2 [L] RewriteRule ^index=(.*[^/])/(.*) index=$1&$2 [N,L] RewriteRule ^index=(.*) index.php?name=$1 [L] </IfModule> # use custom error pages if you wish ErrorDocument 400 /error.php ErrorDocument 401 /error.php ErrorDocument 403 /error.php ErrorDocument 404 /error.php ErrorDocument 500 /error.php # disallow index viewing (like ftp) of directory # Remove # for production sites # Options -Indexes # for hosts that don't allow the above, we won't give people anything to look at <IfModule mod_autoindex.c> IndexIgnore * </IfModule> AddDefaultCharset utf-8 Quote My Website http://www.djcheezy.com/ My Live Radio/Shoutcast Stream (Only active when I have the Shuotcast Server Online) http://www.djcheezy.com:8000/ Link to comment Share on other sites More sharing options...
olajideolaolorun Posted May 30, 2007 Report Share Posted May 30, 2007 In your .htaccess, look for: RewriteEngine On Replace with: Options +FollowSymLinks RewriteEngine On Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
DJCheezy Posted May 30, 2007 Author Report Share Posted May 30, 2007 Nice thanks mate! ^^ Quote My Website http://www.djcheezy.com/ My Live Radio/Shoutcast Stream (Only active when I have the Shuotcast Server Online) http://www.djcheezy.com:8000/ Link to comment Share on other sites More sharing options...
olajideolaolorun Posted May 30, 2007 Report Share Posted May 30, 2007 No Problem. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
DJCheezy Posted May 30, 2007 Author Report Share Posted May 30, 2007 Will that work with all .htaccess files? Quote My Website http://www.djcheezy.com/ My Live Radio/Shoutcast Stream (Only active when I have the Shuotcast Server Online) http://www.djcheezy.com:8000/ Link to comment Share on other sites More sharing options...
DJCheezy Posted May 30, 2007 Author Report Share Posted May 30, 2007 Ok tested it out. And it works with any .htaccess file ^^ Quote My Website http://www.djcheezy.com/ My Live Radio/Shoutcast Stream (Only active when I have the Shuotcast Server Online) http://www.djcheezy.com:8000/ Link to comment Share on other sites More sharing options...
olajideolaolorun Posted May 30, 2007 Report Share Posted May 30, 2007 Yap. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.