title: Laravel 5.5 Routing and Sub-domain Routing
body: <p>I am very new in Laravel. I currently created my personal site on Laravel 5.5 and uploaded to GoDaddy server: <a href="http://bhattraideb.com/" rel="nofollow noreferrer">http://bhattraideb.com/</a>. Now when I click on 'Blog' from navigation I would like to redirect like  <a href="http://blog.bhattraideb.com/" rel="nofollow noreferrer">http://blog.bhattraideb.com/</a> which is currently redirection to '<strong>bhattraideb.com/public/blog</strong>'. </p>
  
  <p>Again from the same this link '<strong>bhattraideb.com/public/blog</strong>' when I click on 'Resume' I aspect to redirect on '<strong>bhattraideb.com/</strong>' </p>
  
  <p>Here is my route code</p>
  
  <p>//** Resume Routes</p>
  
  <pre><code>Route::prefix('/')-&gt;group(function() {
      Route::get('/', 'Frontend\ResumeController@index')-&gt;name('resume.index');
      Route::resource('resume', 'Frontend\ResumeController');
  });
  </code></pre>
  
  <p>//**  Blog Routes</p>
  
  <pre><code>Route::get('show/{id}', 'Frontend\PostController@show')-&gt;name('post.show');
  Route::get('blog/{slug}', ['as' =&gt; 'post.single', 'uses' =&gt; 'Frontend\PostController@getSingle'])-&gt;where('slug', '[\w\d-\_]+');
  Route::resource('blog', 'Frontend\PostController');
  </code></pre>
  
  <p>Can anyone please guide me for this.</p>
  
  <p>Thanks in advance.</p>