My subdomain only index page works but others all page not works

My subdomain only index page works but others all page not works

test.maindomain works

but test.maindomain/contact page not works

please help me

Welcome @imranbru Happy you are here

On the CyberPanel dashboard go to Websites → test.maindomain → File Manager → Fix Permissions

Post the error you are getting. Post a screenshot here

check the subdomain, check any link of the website like DEVBAP - Blog

Is this a Laravel app or Codeigniter app?

Also post your .htaccess

this is laravel app

my .htaccess is

Options -MultiViews -Indexes
RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Did you change rewrite rules How to setup a Laravel application on CyberPanel!

I have tried, that’s not worked

Sorry i have several laravel applications that work out of the box with those steps. I believe the best way the installation works is if you put the app folder out of your public_html or where you are serving your public files e.g.

  1. Create as a proper website or a child domain whatever you prefer
  2. For this example - Set the website root to /home/
  3. Upload all public files to path above
  4. Create a directory /home/ and upload or rsync from a cloud drive all your other laravel folders and files here
  5. Make the directories writeable and change a few paths in /home/

use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;

define('LARAVEL_START', microtime(true));

| Check If The Application Is Under Maintenance
| If the application is in maintenance / demo mode via the "down" command
| we will load this file so that any pre-rendered content can be shown
| instead of starting the framework, which could cause an exception.

if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
    require $maintenance;

| Register The Auto Loader
| Composer provides a convenient, automatically generated class loader for
| this application. We just need to utilize it! We'll simply require it
| into the script here so we don't need to manually load our classes.

require __DIR__.'/../app/vendor/autoload.php';

| Run The Application
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.

$app = require_once __DIR__.'/../app/bootstrap/app.php';

$kernel = $app->make(Kernel::class);

$response = $kernel->handle(
    $request = Request::capture()

$kernel->terminate($request, $response);

This assumes your website works locally with all routes working. Consider using artisan to clear route and view cache.

that’s not worked. just show me homepage well, you can check in live

Post your routes here

same website host in main domain this works fine, you can check

Are there any logs in your main error log for this subdomain website?

no, there is no log error

Here did you delete the website and follow the steps I gave.