title: The page isn’t redirecting properly for Laravel
body: <p>I have hosted a laravel project and gotten this notice <a href="https://i.stack.imgur.com/YuIk1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YuIk1.png" alt="The page isn’t redirecting properly"></a></p>
  
  <p>I am trying to save vendor details into the database and then return dashboard page. It was working fine in localhost but after uploading to a domain it brought this notice. This is what I am using</p>
  
  <p><strong>vendor.blade.php</strong></p>
  
  <pre><code>&lt;form action="{{ route('vendor.store')}}" method="post"&gt;
      @csrf
      Name  &lt;br&gt;
      &lt;input type="texSt" name="name" id=""&gt; &lt;br&gt;
      Email  &lt;br&gt;
      &lt;input type="text" name="email" id=""&gt; &lt;br&gt;
      Phone Number  &lt;br&gt;
      &lt;input type="text" name="phone_number" id=""&gt; &lt;br&gt;
      Town  &lt;br&gt;
      &lt;input type="text" name="town" id=""&gt; &lt;br&gt;
      Location  &lt;br&gt;
      &lt;input type="text" name="location" id=""&gt; &lt;br&gt;
      &lt;input type="submit" value="Register as a vendor"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>VendorController.php</strong></p>
  
  <pre><code>public function store(Request $request)
  {
      $user_id = Auth::id();
      $vendor = new Vendor;
      $vendor-&gt;user_id = $user_id;
      $vendor-&gt;name = $request-&gt;name;
      $vendor-&gt;email = $request-&gt;email;
      $vendor-&gt;phone_number = $request-&gt;phone_number;
      $vendor-&gt;town = $request-&gt;town;
      $vendor-&gt;location = $request-&gt;location;
      $vendor-&gt;save();
  
      return view('dashboard.index');
  }
  </code></pre>
  
  <p><strong>web.php</strong></p>
  
  <pre><code>Route::get('/', function () {
      return view('welcome');
  });
  
  Auth::routes();
  
  Route::get('/home', 'ProductController@index')-&gt;name('home');
  
  Route::resource('category', 'CategoryController');
  Route::resource('role', 'RoleController');
  Route::resource('vendor', 'VendorController');
  Route::resource('product', 'ProductController');
  Route::resource('customer', 'CustomerController');
  Route::get('dashboard/index', 'DashboardController@index');
  Route::get('dashboard/products/show','ProductController@show')-&gt;name('show');
  </code></pre>
  
  <p><strong>.htaccess</strong></p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews
      &lt;/IfModule&gt;
  
      RewriteEngine On
  
      # Redirect /vendor http://shop.hotelstore.co.ke/dashboard/index
  
      RewriteBase /
  
      # Redirect Trailing Slashes...
      RewriteRule ^(.*)/$ /$1 [L,R=301]
  
      # Handle Front Controller...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I have tried editing the .htaccess <code># Redirect /vendor http://shop.hotelstore.co.ke/dashboard/index</code> but it did not help. I have tried change the return page but did not work. The vendor data does not go to the database as well. How do I handle this. Help.</p>