• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

can't view guilds info Znote

ForgottenNot

Member
Joined
Feb 10, 2023
Messages
212
Reaction score
21
Hi

im testing the guilds.php latest znote acc and can't view guild info in .htaccess y replicated how character player name info is searched but for guild i can't view guild info
help i use latest znoteacc guilds.php

Lua:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /characterprofile.php?name=$1

# Handle guild pages
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^guild/(.*)$ /guilds.php?name=$1 [L,QSA]
RewriteRule ^(.*)$ /guilds.php?name=$1

# Force HTTPS for the domain xxxxx.online
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^(www\.)?xxxxxx\.online$ [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Post automatically merged:

Solved
in general.php
Lua:
// Proper URLs
//function url($path = false) {
//    $folder   = dirname($_SERVER['SCRIPT_NAME']);
//    return config('site_url') . '/' . $path;
//}
changed to
Code:
/ Proper URLs
function url($path = '') {
    $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http";
    $domain = $_SERVER['HTTP_HOST'];
    $folder = dirname($_SERVER['SCRIPT_NAME']);
    
    // Normalize the folder path
    $folder = ($folder == '/' || $folder == '\\') ? '' : $folder;
    
    // Construct the base URL
    $baseUrl = $protocol . "://" . $domain . $folder;
    
    // Normalize the path
    $path = ltrim($path, '/');
    
    // Combine base URL with the path
    return rtrim($baseUrl, '/') . '/' . $path;
}
 
Last edited:
Back
Top