-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index.php shown in url for cached pages #18
Comments
Yes, we faced the same issue. The solution was to put the redirection code as per https://stackoverflow.com/a/21813759/3113599 |
I have the same issue. Using nginx. Is this a configuration problem or something the package can solve? |
Using Nginx, I fixed the issue in my site config (thanks to @gauravmak 's link).
|
Is there a recommended solution for apache? |
I think you can use a 301 redirect in apache, after "Serve Cached Page If Available" condition, maybe you have to delete the entire cache first, something like this:
|
Still index.php shown in url for cached pages with Laravel 5.5 ( Apache Server) |
For those who are using apache ,
*clear the cache after. |
First of all, thanks for this great package.
index.php shown in url
I have tested it on our simple Laravel website and found a little quirk.
When visiting a cached page, the displayed url includes index.php
This is not beneficial for SEO and UX, therefore I would like to change it.
Have anyone else experienced this issue and found a work around?
Prior to installing this package, urls where in the form of https://app_url.com/route
After installation and visiting all package to warm the cache, the urls are now in the form of https://app_url.com/index.php/route
Outcommenting the recommended lines from .htaccess resolves the problem, but views are no longer served from cache.
Apache configuration
Apache running with PHP 7.2
The full .htaccess file is as follows
The text was updated successfully, but these errors were encountered: