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

  • Home
  • SEARCH
  • 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 8560531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:17:49+00:00 2026-06-11T16:17:49+00:00

When I run from the controller for www.mysite.com/login return Redirect::to_action(‘profile’); it brings the user

  • 0

When I run from the controller for http://www.mysite.com/login

return Redirect::to_action('profile');

it brings the user to http://www.mysite.com/index.php/profile

I’ve tried it with Redirect::to(‘profile’); but that doesn’t work either.
Redirect::home(); brings me to http://www.mysite.com/index.php which lead me to believe that my mod_rewrite was somehow not working but I have

RewriteEngine on

 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d

 RewriteRule ^(.*)$ index.php/$1 [L]

in the .htaccess under public.

  • 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-06-11T16:17:50+00:00Added an answer on June 11, 2026 at 4:17 pm

    For Laravel to generate links minus the index.php prefix, you need to configure it correctly in addition to having the .htaccess file.

    It’s easily overlooked, so make sure you’ve set 'index' => '', in your application/config/application.php. It’s on line 42 in the default config.

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

Sidebar

Related Questions

I am trying to run a javascript line from my controller as a response
I'm writing a program to be run from the Linux user space which spawns
When I run my Facebook Open Graph object (http://www.21dads.com/testobject) through the Object Debugger, I'm
Let's say that if I read from www.example.com/number, I get a random number. In
I need to restrict a controller in CI 2 to only run from command
I need to run 'legacy code' from inside of Controller and need to get
I can't figure out how to run code from different View Controller 's .
Background: Using unix, codeigniter from localhost. I'd like to run a controllers via a
When you run from the command line $ cython -a mycode.pyx you get a
Possible Duplicate: Can I run from command line program created by Eclipse? I am

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.