Hi I am laravel beginner and having problem during page navigation. http://localhost/mylaravel/public/index In index page I have few items and below href to see the details of that item based on …
Tag: .htaccess
htaccess redirect profile page
I’m creating a system which shows your profile if you visit http://example.com/profile/profile.php?username=test I would like to make it so you could go to http://example.com/profile/test and it …
Rewrite URL with parameters passed through PHP
So I have my PHP page page.php with the parameter id for example. Everything works as expected when I visit page.php?id=1 What I try to do now basically is, reach the site when the user visits …
redirect 301 to / if url contains index.php
I have a blog in laravel 5.8 and I want to redirect 301 to / it there is index.php in the url. My .htaccess is this
How to rewrite URLs with .htaccess (removing id?=1)
I’ve looked all over and have yet to figure out how to make this work, I’m sure it’s very simple for someone who knows what they’re doing. For starters, I have made sure that mod_rewrite is enabled …
Are external links from other sites also redirected?
I have a pretty straight forward question about 301 redirect. So I’ve written 301 redirect for one folder on my site to another site: RewriteRule ^example/folder https://example-new-site.com/ [L,R=…
After edit of my htaccess file, my website returns 500 internal server error
Before I describe my problem I’d like to let you know in advance that I’ve been searching regarding my problem for few hours already, but nothing has changed so far. Now as of my problem, I do have …
why does .htaccess rewrite behave differently based on form content?
I am doing a post transaction with “having x,” in the form field being submitted. My .htaccess is ensuring https: and www. My redirect is changing the post to a get for the previously mentioned data. …
Laravel 6 redirecting to https://www.example.com/index.php when I press enter in the address bar with an address of www.example.com/profile?
I would think others are having the same issue. I am on a shared server with Inmotion Hosting creating basic profile pages. When I put my cursor up in the address bar for example the url ‘https://…
Laravel: how to cache route for 5 minutes?
I want to cache one route in Laravel project and clear it for every 5 minutes. I searched a bunch of articles but only found artisan route:cache command and I have no idea if it possible to configure caching time. So, this is my routes routes/web.php: And every time when user loads rating page the getLeaders() function initiates DB request