@extends('admin.layouts.master') @section('title', 'Remove Public') @section('maincontent') @include('admin.layouts.topbar',$data)
@if ($errors->any()) @endif
{{ __('Remove Public From URL') }}
{{ __('ImportantNote') }}
  • {{__(('Removing public from URL is only works when you have installed script in main domain.'))}}
  • {{__("Do not remove public when you have Installed script in subdomin or subfolders.")}}
  • {{__("Removing public from URL not work for Localhost.")}}
@if(file_exists(base_path().'/'.'.htaccess')) @if($contents == NULL || $contents != $destinationPath)
@csrf
@endif @elseif(!file_exists(base_path().'/'.'.htaccess') )
@csrf
{{ __('Remove Public From URL Manually') }}

{{ __('To remove the public from the URL create a .htaccess file in the root folder and write following code.') }}

   
<IfModule mod_rewrite.c>
    RewriteEngine On 
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>           

{{ __('To remove the public from URL and Force HTTPS redirection create a .htaccess file in the root folder and write the following code.') }}

   
<IfModule mod_rewrite.c>  
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] 
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>               

@endif


@endsection @section('script') @endsection