ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Login form redirect error

July 20, 2010 7:42pm

Subscribe [3]
  • #1 / Jul 20, 2010 7:42pm

    Tyssen

    756 posts

    I’ve got the following login form:

    {exp:member:login_form return="/instructors/index"}
    Standard login form
    {/exp:member:login_form}

    but after submission, the user gets returned to /site.php/instructors/

    When I was developing the site I used site.php as the index file but that’s now been changed so that there is no xxx.php in the URL (ie, field is left blank in system prefs and using .htaccess to remove index.php).

    So where would the reference to site.php be coming from? (I’ve checked both config.php and path.php and there’s no mention of it in either of those.)

  • #2 / Jul 21, 2010 2:52am

    John Henry Donovan

    12339 posts

    John,

    Did you add it to your .htaccess by any chance?

  • #3 / Jul 21, 2010 2:55am

    Tyssen

    756 posts

    No, .htaccess is just a simple:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
  • #4 / Jul 21, 2010 4:33am

    John Henry Donovan

    12339 posts

    John,

    How about the paths in your instructor Weblog Preferences?

    Can you try it without the starting forward slash

    {exp:member:login_form return="instructors/index"}

    Your index.php in your root is still renamed as site.php right?

  • #5 / Jul 21, 2010 4:44am

    Tyssen

    756 posts

    Weblog prefs are fine, I tried removing the / but it didn’t make any difference. And no, the root file is renamed to index.php.

  • #6 / Jul 21, 2010 6:14am

    John Henry Donovan

    12339 posts

    John,

    Can you manually clear your cache by deleting all the folders in system/cache/ bar the index.html.
    Can you also test with a different template group name

  • #7 / Jul 21, 2010 8:20am

    Tyssen

    756 posts

    All the cache folders are empty and I’ve changed the return value to point to a different template group, but it’s still returning to /site.php/instructors/ ! :? And I’ve just noticed that when you log out, it returns you to /site.php/login/ instead of just /login/ too.

  • #8 / Jul 21, 2010 6:28pm

    Brandon Jones

    5500 posts

    Tyssen,

    Just to simplify things a bit, temporarily rename your .htaccess file to something else and set the site’s index page back to index.php. Let’s get things working like this before moving forward. That change might also help if there is some server caching mechanism involved.

  • #9 / Jul 21, 2010 6:45pm

    Tyssen

    756 posts

    I renamed .htaccess and added index.php as the site’s index page and the problem renamed except that it went to a browser 404 page rather than one served by EE so there’s no way for users to continue, so have now switched back again now.

  • #10 / Jul 22, 2010 4:03am

    John Henry Donovan

    12339 posts

    Please check your email

  • #11 / Jul 22, 2010 8:54am

    Tyssen

    756 posts

    Form just filled out.

  • #12 / Jul 22, 2010 7:05pm

    Brandon Jones

    5500 posts

    Thanks Tyssen, we’ll keep you posted here.

  • #13 / Jul 23, 2010 3:35am

    John Henry Donovan

    12339 posts

    John,

    Do you remember installing an extension called Twomile Login Redirect by any chance 😉

  • #14 / Aug 26, 2010 10:12pm

    Tyssen

    756 posts

    Hi John,

    Sorry for the late reply but I never got a notification about your response and completely forgot about the issue as I never heard back from the client about it. But I must hang my head in shame, because you’re quite right, it was the extension that was causing the problem.

  • #15 / Aug 27, 2010 1:23am

    John Henry Donovan

    12339 posts

    No problems John. Thanks for getting back to us. Closing this one out.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases