Welcome Guest, Not a member yet? Register   Sign In
.htaccess problem..
#1

Please help.. this my .htaccess code..

RewriteBase /

RewriteEngine On


RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.+)$ index.php/$1 [L]

and my page looks like this.. see it in attachment or go to (www.1kem1.n9s.com)

Please help me guys..

thank you very much..

Attached Files Thumbnail(s)
   
Reply
#2

My .htaccess looks like this:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

# Prevent file browsing
Options -Indexes

As you can see, I don't use the RewriteBase rule. CodeIgniter works fine without it.
Reply
#3

(07-23-2015, 10:35 AM)kemjohnm Wrote: Please help.. this my .htaccess code..

RewriteBase /

RewriteEngine On


RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.+)$ index.php/$1 [L]

and my page looks like this.. see it in attachment or go to (www.1kem1.n9s.com)

Please help me guys..

thank you very much..

You donțt have an index.php file and that's why your page looks like that.
Romanian CodeIgniter Team :: Translations :: Comunity :: Developers
http://www.codeigniter.com.ro
Reply
#4

Also, RewriteEngine On should be before RewriteBase, if you actually need RewriteBase or RewriteEngine On.
Reply
#5

(This post was last modified: 07-23-2015, 09:58 PM by kemjohnm.)

Forbidden

You don't have permission to access /application/controllers/Login.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Reply
#6

(07-23-2015, 09:43 PM)kemjohnm Wrote: Forbidden

You don't have permission to access /application/controllers/Login.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.





Try add the line 
Code:
Options +FollowSymLinks
on the top of your .htaccess
Reply
#7

still the same error..
Reply
#8

Have you checked the permissions on your /application and /application/controllers directories, as well as the Login.php file?

Additionally, is your DocumentRoot set correctly (to the directory containing your index.php file) in your site's .conf file?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB