diff --git a/adm/_rewrite_config_form.php b/adm/_rewrite_config_form.php index 2fc48e5ba..e5986ad4c 100644 --- a/adm/_rewrite_config_form.php +++ b/adm/_rewrite_config_form.php @@ -7,6 +7,9 @@ $is_nginx = (stripos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false); $is_iis = !$is_apache && (stripos($_SERVER['SERVER_SOFTWARE'], 'microsoft-iis') !== false); +$get_path_url = parse_url( G5_URL ); + +$base_path = isset($get_path_url['path']) ? $get_path_url['path'].'/' : '/'; ?>

짧은 주소 설정

@@ -48,9 +51,9 @@ $is_iis = !$is_apache && (stripos($_SERVER['SERVER_SOFTWARE'], 'microsoft-iis') # apache configuration
-
+
 RewriteEngine On
-RewriteBase /
+RewriteBase 
 
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
@@ -61,6 +64,7 @@ RewriteRule ^([0-9a-zA-Z_]+)/([^/]+)/$ bbs/board.php?bo_table=$1&wr_seo_title=$2
 RewriteRule ^([0-9a-zA-Z_]+)/write$  bbs/write.php?bo_table=$1&rewrite=1    [QSA,L]
 RewriteRule ^([0-9a-zA-Z_]+)/p([0-9]+)$  bbs/board.php?bo_table=$1&page=$2    [QSA,L]
 RewriteRule ^([0-9a-zA-Z_]+)/([0-9]+)$  bbs/board.php?bo_table=$1&wr_id=$2&rewrite=1  [QSA,L]
+
 
@@ -70,12 +74,12 @@ RewriteRule ^([0-9a-zA-Z_]+)/([0-9]+)$ bbs/board.php?bo_table=$1&wr_id=$2&rewri
 
 if (!-e $request_filename){
-    rewrite ^/g54/rss/([0-9a-zA-Z_]+)$ /g54/bbs/rss.php?bo_table=$1 break;
-    rewrite ^/g54/([0-9a-zA-Z_]+)$ /g54/bbs/board.php?bo_table=$1&rewrite=1 break;
-    rewrite ^/g54/([0-9a-zA-Z_]+)/([^/]+)/$ /g54/bbs/board.php?bo_table=$1&wr_seo_title=$2&rewrite=1 break;
-    rewrite ^/g54/([0-9a-zA-Z_]+)/write$ /g54/bbs/write.php?bo_table=$1&rewrite=1 break;
-    rewrite ^/g54/([0-9a-zA-Z_]+)/p([0-9]+)$ /g54/bbs/board.php?bo_table=$1&page=$2 break;
-    rewrite ^/g54/([0-9a-zA-Z_]+)/([0-9]+)$ /g54/bbs/board.php?bo_table=$1&wr_id=$2&rewrite=1 break;
+    rewrite ^rss/([0-9a-zA-Z_]+)$ /g54/bbs/rss.php?bo_table=$1 break;
+    rewrite ^([0-9a-zA-Z_]+)$ /g54/bbs/board.php?bo_table=$1&rewrite=1 break;
+    rewrite ^([0-9a-zA-Z_]+)/([^/]+)/$ /g54/bbs/board.php?bo_table=$1&wr_seo_title=$2&rewrite=1 break;
+    rewrite ^([0-9a-zA-Z_]+)/write$ /g54/bbs/write.php?bo_table=$1&rewrite=1 break;
+    rewrite ^([0-9a-zA-Z_]+)/p([0-9]+)$ /g54/bbs/board.php?bo_table=$1&page=$2 break;
+    rewrite ^([0-9a-zA-Z_]+)/([0-9]+)$ /g54/bbs/board.php?bo_table=$1&wr_id=$2&rewrite=1 break;
 }
 
diff --git a/mobile/tail.php b/mobile/tail.php index 74335a2af..e3c984bde 100644 --- a/mobile/tail.php +++ b/mobile/tail.php @@ -18,9 +18,9 @@ if(defined('G5_THEME_PATH')) {
Copyright © 소유하신 도메인. All rights reserved.
diff --git a/tail.php b/tail.php index 9a83862d4..427dc513e 100644 --- a/tail.php +++ b/tail.php @@ -37,9 +37,9 @@ if (G5_IS_MOBILE) {
<?php echo G5_VERSION ?>
diff --git a/theme/basic/tail.php b/theme/basic/tail.php index 33d3dcb76..23b828ecf 100644 --- a/theme/basic/tail.php +++ b/theme/basic/tail.php @@ -32,9 +32,9 @@ if (G5_IS_MOBILE) {