256 Kilobytes

All Content > Redirects

Type All Category All Tag Redirects

Profile Photo - Hash Brown

Preventing Hotlinking with .htaccess

Articles in Server-Side | By Hash Brown

Published 1 week agoSat, 09 Mar 2019 19:30:44 -0800

Profile Photo - Hash Brown

Hotlinking can be bad. It can choke your...

MoreIt's fairly common for people to steal images on the internet. Sometimes that's fine, you don't c
🗨
0
🐏
1
👁
50
Profile Photo - Some Guy

Method to rewrite a URL in a Laravel project?

Answers in Frameworks | By Some Guy

Published 3 months agoSun, 02 Dec 2018 03:43:48 -0800

Profile Photo - August R. Garcia

Last Reply Often, the easiest solution is to do this in the .htaccess file (the same as rewriting a URL in the general/not specific to Laravel case), which is lo... August R. Garcia,

Often, the easiest soluti...

Thu, 03 Jan 2019 17:05:20 -0800 2 months ago
🗨
1
🐏
0
👁
29
Profile Photo - Some Guy

Laravel 301 all pages to the www version and the https version.

Answers in Frameworks | By Some Guy

Published 3 months agoSun, 02 Dec 2018 03:44:07 -0800

Profile Photo - August R. Garcia

Last Reply The fix via .htaccess is also very straightforward. Open the included .htaccess file located at: /public/.htaccesss and then add these lines:... August R. Garcia,

The fix via .htaccess is...

Wed, 05 Dec 2018 00:35:59 -0800 3 months ago
🗨
2
🐏
0
👁
29
Profile Photo - Some Guy

[Laravel] If not on a certain page redirect to that page?

Answers in Frameworks | By Some Guy

Published 3 months agoSun, 02 Dec 2018 03:44:43 -0800

Profile Photo - August R. Garcia

Last Reply Something along these lines should work for your purposes:if (Request::path() != "posts/some-post") return redirect('/posts/some-post&... August R. Garcia,

Something along these lin...

Sun, 02 Dec 2018 03:48:42 -0800 3 months ago
🗨
1
🐏
0
👁
27
Profile Photo - Some Guy

How to check the current page in Laravel?

Answers in Frameworks | By Some Guy

Published 3 months agoSun, 02 Dec 2018 03:41:58 -0800

Profile Photo - August R. Garcia

Last Reply To get the current path, you can use: <?php Request::path() August R. Garcia,

To get the current path,...

Sun, 02 Dec 2018 03:45:58 -0800 3 months ago
🗨
1
🐏
0
👁
27