Welcome Guest, Not a member yet? Register   Sign In
htaccess and tank auth
#1

[eluser]xtremer360[/eluser]
I'm working with Tank Auth and having an htaccess issue problem. My code is following but here's the odd thing about it.

http://www.kansasoutlawwrestling.com/kow...auth/login

But it should be http://www.kansasoutlawwrestling.com/kow...auth/login but that links says 404 File Not Found

I don't know if this matters but there's a application and system directories in the root directory and a kowmanager directory in the root directory then under the kowmanager is another application and htaccess inside there.

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ index.php/$1 [L]

#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
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#This last condition enables access to the images and css folders, and the robots.txt file
RewriteCond $1 !^(index\.php|(.*)\.swf|images|robots\.txt|css|docs|cache)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    ErrorDocument 404 /index.php
</IfModule>
#2

[eluser]CodeIgniteMe[/eluser]
Check if the server supports/enabled mod_rewrite module.
To check, created a simple php file like this
Code:
&lt;?php
phpinfo();
?&gt;
save it as phpinfo.php, upload it to the server, then execute the file.
Try to find "rewrite" under the apache loaded modules.
#3

[eluser]xtremer360[/eluser]
it does
#4

[eluser]CodeIgniteMe[/eluser]
add "kowmanager" inside
Code:
RewriteCond $1 !^(index\.php|(.*)\.swf|images|robots\.txt|css|docs|cache)
RewriteRule ^(.*)$ index.php/$1 [L]

so that kowmanager directory is allowed to be accessed and not rewritten.
I guess it should look like this.

Code:
RewriteCond $1 !^(index\.php|(.*)\.swf|images|robots\.txt|css|docs|cache|kowmanager)
RewriteRule ^(.*)$ index.php/$1 [L]




Theme © iAndrew 2016 - Forum software by © MyBB