Welcome Guest, Not a member yet? Register   Sign In
routing
#11

I have use this .htaccess index:

Code:
Code:
RewriteEngine On
RewriteBase /

RewriteRule ^(system|application|cgi-bin) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

to remove index.php but it's still there. 

http://[::1]/ci3/index.php/welcome/table 

to show table I still have to type the above url.
" If I looks more intelligence please increase my reputation."
Reply
#12

(02-24-2016, 10:25 AM)davy_yg Wrote: I have use this .htaccess index:

Code:
Code:
RewriteEngine On
RewriteBase /

RewriteRule ^(system|application|cgi-bin) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

to remove index.php but it's still there. 

http://[::1]/ci3/index.php/welcome/table 

to show table I still have to type the above url.
here goes to config.php find it, take a look my projects,
Code:
$config['base_url'] = '';

cuti is name folder my projects change as yours, hope this help
Code:
$config['base_url'] = 'http://localhost/cuti/';
Reply
#13

(This post was last modified: 02-25-2016, 04:01 AM by keulu.)

and check this var too in the config file

$config['index_page'] = '';

NOT

$config['index_page'] = 'index.php';
Reply
#14

I did all that and still remains the same.
" If I looks more intelligence please increase my reputation."
Reply
#15

Is mod_rewrite actually enabled?
Reply
#16

(This post was last modified: 02-25-2016, 11:15 AM by InsiteFX.)

You can check your .htaccess file is working by typing this in:

Code:
TYPE TEST <-

RewriteEngine On
RewriteBase /

RewriteRule ^(system|application|cgi-bin) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

If it is working you will get an error!

Also if your OS is Windows it will not remove it the first time. Also your editor can cause this if not configured correctly.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#17

.htaccess

Code:
TYPE TEST <-

RewriteEngine On
RewriteBase /

RewriteRule ^(system|application|cgi-bin) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]


I already try using the new .htaccess content and have not been successful yet erasing the index.php to show content:

http://localhost/ci3/index.php/welcome/input

Can you help?

It only shows this error:

Product Input

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: attributes
Filename: views/product_input.php
Line Number: 13
Backtrace:
File: C:\xampp\htdocs\ci3\application\views\product_input.php
Line: 13
Function: _error_handler
File: C:\xampp\htdocs\ci3\application\controllers\Welcome.php
Line: 33
Function: view
File: C:\xampp\htdocs\ci3\index.php
Line: 292
Function: require_once
" If I looks more intelligence please increase my reputation."
Reply
#18

Try removing this line from your .htaccess file, people use it but it is not required as long as you setup your html correct and it can cause problems in loading.

RewriteRule ^(system|application|cgi-bin) - [F,L]
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB