توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : نمایش فایل html ثابت با ورود به همه دایرکتوری های یک هاست
seraj654
September 28th, 2017, 10:55
سلام
چجوری میشه یه فایل index.php داشته باشیم و با ورود به هر دایرکتوری از هاست فقط همین فایل نمایش داده بشه؟
نمونه:
این لینک:
http://dl2.soft98.ir/
و این لینک:
http://dl2.soft98.ir/soft/u-v/
هم در آپاچی و هم nginx
ممنون میشم راهنمایی کنید
mask-online
September 28th, 2017, 11:01
با سلام از کد زیر میتونید استفاده کنید
قابل توجه اینکه فایل index.html ایجاد کنید و در پوشه هایی که مد نظر هست قرار بدید
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>عنوان سایت</title>
<meta name="robots" content="noindex,nofollow" />
<meta name="googlebot" content="noindex,nofollow" />
<style type="text/css">
.style1 { text-align:center;}
.style1 a:link , .style1 a:visited{ color:#3399FF;text-decoration:none}
.style1 a:hover { font-weight:bold; color:red; text-decoration:none}
</style>
</head>
<body topmargin=0 leftmargin=0 leftmargin=0>
<table>
<tr><td></td><td width=176></td></tr>
</table>
<br>
<table width=100% height=300 cellpadding=0 cellspacing=0>
<tr>
<td width=100> </td>
<td valign= middle>
<br><br>
<table align="center" border="0" cellpadding="5" cellspacing="0" style=" font-family:Tahoma; font-size:11px ; border-collapse: collapse; border: 1px dashed #cccccc" bordercolor="#111111" width="400">
<tr align="center"><td width="100%" bgcolor="#F5F5F5" class="style1">
متن مورد نظر : <a href="#">لینک سایت</a></td></tr>
</table>
</td><td width=100 valign=center ></td></tr>
</table>
</html>
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.