256 Kilobytes

All Content > Redirects

Type All Category All Tag Redirects

Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

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

Profile Photo - August R. Garcia

Last Reply Update. Don't fucking use the code in the previous post I made. Use this code: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c... August R. Garcia,

Update. Don't fucking use...

Sat, 13 Apr 2019 00:01:32 -0700 1 month ago
🗨
3
🐏
0
👁
70
Profile Photo - Hash Brown

Preventing Hotlinking with .htaccess

Articles in Server-Side | By Hash Brown

Published 2 months 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 care, you might never even find out. On the otherha...
🗨
0
🐏
1
👁
115
Profile Photo - Some Guy

Method to rewrite a URL in a Laravel project?

Answers in Frameworks | By Some Guy

Published 5 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 4 months ago
🗨
1
🐏
0
👁
44
Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

Published 5 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 5 months ago
🗨
1
🐏
0
👁
47
Profile Photo - Some Guy

How to check the current page in Laravel?

Answers in Frameworks | By Some Guy

Published 5 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 5 months ago
🗨
1
🐏
0
👁
44