我设法在我的Ubuntu 14.04 LTS电脑上安装Vagrant.如何安装我从URL手动下载的流浪盒?我想安装Laravel Homestead,但由于我的网络连接,它总是会失败.我想从这个链接下载它,https://vagrantcloud.com/laravel/boxes/homestead/versions/11/providers/virtualbox.box但我不知道下载这个盒子后该怎么做.
我有一个URL http://localhost/index.php?user=1.当我添加此.htaccess文件
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^user/(.*)$ ./index.php?user=$1
Run Code Online (Sandbox Code Playgroud)
我现在将被允许使用http://localhost/user/1链接.但是http://localhost/index.php?user=1&action=update我怎么能进入http://localhost/user/1/update呢?
另外我该如何制作这个网址http://localhost/user/add?谢谢.对不起,我比较新.htaccess.
如何将URL重定向www.myapp.co到myapp.co?并且如果该URL具有像其他参数www.myapp.co/other-parameter将被重定向到myapp.co/other-parameter,其中other-parameter可以是任何东西.对不起这个noob问题,我还在使用Laravel一周.
顺便说一句,我正在使用动态子域,所以我只需要重定向www到非www而不是其他子域.
Route::group(array('domain' => 'myapp.co'), function() {
Route::get('/', function() {
return 'Hello! Welcome to main page...';
});
Route::get('/login', function() {
return 'Login';
});
Route::get('/signup', function() {
return 'Signup';
});
});
Route::group(array('domain' => '{account}.myapp.co'), function() {
Route::get('/', function($account) {
if ($account == 'www') {
return Redirect::to('http://myapp.co');
}
return $account;
});
});
Run Code Online (Sandbox Code Playgroud) 我已经在Laravel本地Ubuntu计算机上创建了一个应用程序。但我想HTTPS在其所有通配符子域上使用。如何在本地执行此操作?顺便说一句,我在上面添加了我的网站URL,etc/hosts所以我不需要键入localhost,而是www.mysite.loc。
在此问题中的答案如何在Ubuntu的localhost上安装SSL?,我认为仅适用于主要领域。
我尝试根据屏幕尺寸调整图像大小,但它不起作用。
<div class="max-w-4xl mx-auto">
<img class="rounded-full -mt-10 ml-3 h-20 w-20 md:h-30 md:w-30 border-[6px] border-white bg-white"
src="https://api.lorem.space/image/face?w=150&h=150" alt="profile picture">
</div>
Run Code Online (Sandbox Code Playgroud)
我在这段代码上做错了什么?
.htaccess ×3
php ×3
apache ×2
laravel ×2
css ×1
html ×1
laravel-4 ×1
mod-rewrite ×1
redirect ×1
ssl ×1
tailwind-css ×1
ubuntu-14.04 ×1
vagrant ×1