[eluser]MissionMan[/eluser]
This is my login view:
<?php echo form_open('main/login'); ?>
<label for="user_id">User ID:</label>
<input type="text" name="user_id" id="user_id" value="<?php echo set_value('user_id'); ?>" /><br>
<label for="password">Password:</label>
<input type="password" name="password" id="password" value="<?php echo set_value('password'); ?>" /><br>
<input type="submit" name="submit" id="submit" value="OK" /><br>
<?php echo trim(form_error('user_id')); ?>
<?php echo trim(form_error('password')); ?>
</form>
This works fine on my local computer, but when I try it on my hosted public server, I get a "404 Page Not Found" error message when I click the "Submit" button. I have tried including "index.php", but that doesn't work either. When I look at the source, I see:
action="http://www.mywebsite.mobi/main/login"
When I use the standard Codeigniter .htaccess file, I get an internal server error. I delete the .htaccess file and I at least get to my default controller, which displays the login form.
This is one thing that may be affecting things. My .mobi domain has been set up as a subdirectory of my main com.au domain. So my Codeigniter installation is actually located in mydomain.com.au/mobi, and through the use of a clever .htaccess file, when I type in mydomain.mobi, the browser is actually redirected to mydomain.com.au/mobi.
Where should I be looking for a solution? I did a search of the forums and didn't find anything that helped.