2

I need help please. I hosted a website designed with codeigniter on a remote server, but I can not access the pages.Jai as 404 page not found error.

Here is the contents of the config.php file

$ config ['base_url'] ='http://www.SitePhp';
$ config ['index_page'] ='';

Here is the content of the .htaccess file

Options -Indexes
RewriteEngine On
RewriteCond $1 !^(index\.php|assets/|robots\.txt)
RewriteRule ^ (. *)$ index.php/$ 1 [L]

Thank you.

2
  • 1
    I see a lot of spaces that shouldn't be there. Are they really there in your config.php and .htaccess files or did you add those for our benefit? Commented May 18, 2018 at 22:40
  • ok. i'll rewrite them. Commented May 18, 2018 at 22:57

1 Answer 1

1

htaccess

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

and shared host open mod_rewrite module.

$config['base_url'] ='http://www.SitePhp.com/'; 

will be

http://www.SitePhp.com etc.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.