Welcome Guest, Not a member yet? Register   Sign In
Redirect Problem
#1

Hello, i have received a website powered by CodeIgniter, the home page work, but when i click on Register, i have 404 error page.
I'm on a Virtual Host with xampp.

Here's the base url

PHP Code:
$config['base_url'] = 'http://vc-rp.net'

index_page

PHP Code:
$config['index_page'] = ''

The Database is setup correctly.
Reply
#2

Add a trailing slash:

$config['base_url'] = 'http://vc-rp.net/';
Reply
#3

It doesn't work, it tell me error 404 Object not found.
Reply
#4

This can be a number of things.

Is your Editors root path for your project setup correct?

Do you need a sub path mapping in your editor?

If you changed the CodeIgniter ./system and ./application paths did you set these in index.php ?

VHOST Settings:

Code:
#--------------------------------------------------------------
# HTTP:
#--------------------------------------------------------------
<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/myproject/public_html"
    ServerName myproject.localhost
    ServerAlias myproject.localhost
    <Directory "C:/xampp/htdocs/myproject/public_html">
        Order allow,deny
        Allow from all
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

#--------------------------------------------------------------
# HTTPS:
#--------------------------------------------------------------
<VirtualHost *:443>
    DocumentRoot "C:/xampp/htdocs/myproject/public_html"
    ServerName myproject.localhost
    ServerAlias myproject.localhost
    SSLEngine on
    SSLCertificateFile "conf/ssl.crt/server.crt"
    SSLCertificateKeyFile "conf/ssl.key/server.key"
    <Directory "C:/xampp/htdocs/myproject/public_html">
        Options All
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

#--------------------------------------------------------------
What did you Try? What did you Get? What did you Expect?

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

Everything looks ok, I do not understand too where the error can come from. The site was online on a server, everything was working, but not in localhost.
Reply
#6

Check your ./application/config/routes.php file and see what is
the default controller then trace out the view code.
What did you Try? What did you Get? What did you Expect?

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

(This post was last modified: 02-16-2018, 09:14 AM by dave friend.)

(02-15-2018, 08:30 AM)Navish31 Wrote: It doesn't work, it tell me error 404 Object not found.

Is that error message 100% accurate? I ask because that exact phrase is not found anywhere in CodeIgniter's core code.

Or, is that not a CodeIgniter error page? Is it instead a PHP error screen?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB