Mobile app version of vmapp.org
Login or Join
Marchetta884

: You don't have permission to access /index.php on this server I made a 'login with OpenID' page and I had a error when OpenID provider return to my page: You don't have permission to

@Marchetta884

Posted in: #Authentication #Openid #Php

I made a 'login with OpenID' page and I had a error when OpenID provider return to my page:


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


If I remove parameters which are returned by OpenID provider, the page run well. How can I fix this problem? The login page that cause error is: bryox.com/login

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Marchetta884

2 Comments

Sorted by latest first Latest Oldest Best

 

@Shelley277

The login page you link to seems to actually be located here: bryox.com/gate/login
To fix this you could add

$route['login'] = "gate/login";


to your /application/config/routes.php or alternatively make a login.php controller with its index method as a copy of the login method in your gate controller.

10% popularity Vote Up Vote Down


 

@Ravi8258870

404 errors generally means the page can't be found. Check to make sure your error document is actually in the location you specified.

Sometimes it can be something as simple as including a leading slash. For example, if your custom error page is on your website root and it's called notfound.htm, you should put ErrorDocument 404 /notfound.htm. If you forget the slash, the webserver will look for a notfound.htm in the current directory. In case you do not have such a file, a default 404 page will be served. You can define your custom error pages in the .htaccess file.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme