미채택 완료
123.com 하위에 G5폴더에 그누5.3.1을 설치하고 123.com 으로 주소표시를 할수 있나요?
123.com 하위에 G5폴더에 그누5.3.1을 설치하고 123.com 으로 주소표시를 할수 있나요?
/.htassess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^$ /G5/ [L]
</IfModule>
이렇게 하면 연결 잘는데.. (루트에는 다른홈이 설치되어있음)
로그인이나 뭐를 하고나면 가끔 주소창에 http://123.com/G5 이렇게 되는데
이거를 계속 http://123.com/ 이렇게만 나오게는 못하나요?
잘 부탁 드립니다.
답변 5개 / 댓글 1개
Copy
<frameset rows="0,*" frameborder="no" framespacing="0">
<frame src="about:blank" frameborder="No" framespacing="0" marginheight="" marginwidth="0" noresize scrolling="no">
<frame name="main" src="url" frameborder="No" framespacing="0" noresize scrolling="auto">
</frameset>
다음은 AJAX를 사용하여 서버에서 정보를 검색하는 샘플 HTML 페이지입니다.
Copy
<html> <head> <script type="text/javascript"> function getAreaInfo(id) { var infoBox = document.getElementById("infoBox"); if (infoBox == null) return true; var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { if (xhr.readyState != 4) return; if (xhr.status != 200) alert(xhr.status); infoBox.innerHTML = xhr.responseText; }; xhr.open("GET", "info.php?id=" + id, true); xhr.send(null); return false; } </script> <style type="text/css"> #infoBox { border:1px solid #777; height: 400px; width: 400px; } </style> </head> <body onload=""> <p>AJAX Test</p> <p>Click a link... <a href="info.php?id=1" onclick="return getAreaInfo(1);">Area One</a> <a href="info.php?id=2" onclick="return getAreaInfo(2);">Area Two</a> <a href="info.php?id=3" onclick="return getAreaInfo(3);">Area Three</a> </p> <p>Here is where the information will go.</p> <div id="infoBox"> </div> </body> </html>
그리고 HTML 페이지로 정보를 반환하는 info.php가 있습니다
Copy
<?php $id = $_GET["id"]; echo "You asked for information about area #{$id}. A real application would look something up in a database and format that information using XML or JSON."; ?>
답변을 작성하려면 로그인이 필요합니다.