Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7420507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:15:05+00:00 2026-05-29T08:15:05+00:00

I have a simple login page and the URL structure is like www.mydomain.com/admin/auth I

  • 0

I have a simple login page and the URL structure is like http://www.mydomain.com/admin/auth

I had a problem several days ago where the $_POST had always been empty, so i googled and found http://codeigniter.com/forums/viewthread/191918/ which suggested to change my config.php from:

$config['uri_protocol'] = 'REQUEST_URI';

to

$config['uri_protocol'] = 'PATH_INFO';

And finally it worked but only when i add index.php on the URL like this:
http://www.mydomain.com/index.php/admin/auth

I tried to make the $_POST work without having index.php on the URL but i couldn’t figure it out. My .htaccess is:

RewriteEngine on
RewriteCond $1 !^(index.php|assets|user_guide|robots.txt)
RewriteRule ^(.*)$ index.php/$1 [L]

All i need to do is for the $_POST to work on my URL, is there any workout or workaround? Thank you for your time.

EDIT:
Here is my controller (i reduced so it only loads the view, for debugging)

public function index()
{
$this->load->view('admin/login');
}

And my view has been reduced to this:

<?php var_dump($_POST); ?>

<html><head></head><body>       
<form method='POST'>
<input type='text' name='nama' value='test'>
<input type='submit' value='Submit'>
</form>
</body></html>

And this code works perfectly fine on a single file i made on my server without CI.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:15:06+00:00Added an answer on May 29, 2026 at 8:15 am

    Figured it out, it got something to do with my subdomain. When i disable the subdomain it all works fine, it seems to have something with the htaccess of subdomain and CI. Thank you for you time all 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok simple question. I have a JSF application, containing a login page. The problem
so I have a simple login page like this: <fieldset> <legend>Verification</legend> <form method=post action=authentication.php>
I have simple login box, which is centered to the middle of page (vertical
Is there any example on how to implement a simple login page/dialog? I have
I have a simple app where you can login it looks like this: {{#view
My page url is http://somain.com/test.php?id=1&mview=5 After login the above url shows choice names and
I am very new to flex, i have created a simple login page in
I have a simple login page. Everything works fine in Mozilla and IE. When
I have this simple login script: $.ajax({ type: 'POST', url: 'authorize.php', data: { username:
I have a simple ASP.Net login page. When the login button is clicked, the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.