|
|
|
Rewrite Classic Asp url by 404 Error Code for Directory and Sub Directory |
|
|
|
|
|
|
|
Thanks you very much ..
However, this is just files... My Directory have main directory and record.....
My script is in Asp.. I found some articles has re-write by 404....
<%
Set istekurl = Request.ServerVariables("QUERY_STRING")
istekbolum = Split(istekurl,"/")
Gelendir=istekbolum(4)
Parcala=Split(Gelendir,"-")
ID=Parcala(0)
Sorgu="Select * From Link Where LinkLive=0 and CatID="&ID&" ORDER BY LinkPosted DESC"
Rs.Open Sorgu,bag,1
if rs.eof then
response.redirect "/directory/submit.asp?uyari=notfound"
end if
On Error Resume Next
page = CInt(istekbolum("5"))
If (page ="" or page = 0) Then page = 1 Else page=page
rs.pageSize = kactane 'veri sayısını config.asp den değiştirin.!!
rs.absolutePage=page
sayfa_sayisi = rs.pagecount
Do While Not rs.Eof and i<rs.pagesize
i=i+1
On Error Resume Next
%>
Do you have any code?
|
ประวัติการแก้ไข 2010-10-18 23:03:15
|
|
|
|
Date :
2010-10-18 23:02:17 |
By :
vincentlauv |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|