Welcome Guest, Not a member yet? Register   Sign In
Why my .htacces doesn't work?
#1

[eluser]DogWin[/eluser]
Hi guys!
I want the LAN can see my site,the url like http://10.72.64.149/~darren/tbrand/

'tbrand' is my project folder.
The virtual host work well on my own mac.
I followed the page (http://ellislab.com/forums/viewthread/82091/) and changed my config.php
Code:
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
set the .htaccess
Code:
RewriteEngine on
RewriteBase /~darren/tbrand/
RewriteCond $1 !^(index\.php|images|font|css|adcss|convert|js|upload|html|flash|log|robots\.txt|favicon\.ico|update\.php|install\.php)
RewriteRule ^(.*)$ index.php/$1 [L]
but I found it doesn't work without the 'index.php'.Can anybody please let me know what I’m doing wrong?
Thanks.
#2

[eluser]InsiteFX[/eluser]
You can try this one;
Code:
# Un-Comment to Generate a server 500 error to make sure .htaccess file is working!

AddHandler application/x-httpd-php53 .php
php_value default_charset utf-8

Options FollowSymLinks
DirectoryIndex index.php

RewriteEngine On

# Checks to see if the user is attempting to access a valid file,
# such as an image or css document, if this isn't true it sends the
# request to index.php
# Change for your own resources!
#
RewriteCond $1 !^(index\.php|assets|css|js|images|img|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]




Theme © iAndrew 2016 - Forum software by © MyBB