• 07-01-2010, 20:47:51
    #1
    Üyeliği durduruldu
    Arkadaşlar Seomdaki Hatayı Buldumda Çözümünü Bulamadım Sorunşu Default İnclude Edemiyor. orta.asp Dosyasını Çünki Seodayken Farklı nomalde Farklı Çağırılıyo... Örnek:

    Calışan Orjinali:

    <%
    hosturk = request.querystring("hosturk")
    if hosturk = "" or hosturk = "giris" then
    %>

    <!--#include file="orta.asp"-->


    Seoda Orta Asp. Dosyasını İnclude Etmeyen:

    <%
    hosturk = Session("hosturk")
    if hosturk = "" or hosturk = "giris" then
    %>

    <!--#include file="orta.asp"-->

    Bu Kodların Yerine Hangi kodlar Kullanılabilir

    404 Dosyamdaki kodlar :

    <%
    '##### Rewrite Kontrolü --
    Dim strQry : strQry = Request.ServerVariables("QUERY_STRING")
    If Len(strQry)> 0 Then
    Dim splBol : splBol = Split(strQry,"/")
    Dim strBol : strBol = splBol(UBound(splBol))
    Session("hosturk") = strBol
    If Len(strBol) > 2 Then
    Server.Execute("default.asp")
    Else
    Response.Clear
    Response.Write("<h1>404 - Bulunamadı</h1>")
    Response.End
    End If
    End If
    '##### Rewrite Kontrolü --
    %>

    Orta Asp Çalışsa Üyelik Vb Tüm Özellikler Çalışacak.. tek sorun o html linkler çalışıyor ama üyelik falan orta aspden include ediliyor ve orta aspi seo almıyor ?
  • 07-01-2010, 20:54:05
    #2
    orta.asp dosyanın içeriği ne? sadece session kontrolü ise sorun yok. 404.asp sayfasının başına include etmen yeterli. değilse, orta.asp sayfanın kodlarına bakmak lazım.
  • 07-01-2010, 21:29:52
    #3
    Üyeliği durduruldu
    anka81 adlı üyeden alıntı: mesajı görüntüle
    orta.asp dosyanın içeriği ne? sadece session kontrolü ise sorun yok. 404.asp sayfasının başına include etmen yeterli. değilse, orta.asp sayfanın kodlarına bakmak lazım.
    Kardeş Rica Etsem Yardımcı olabilirmisin Dediğini yaptım ama Acayip Dağılıyor site. Ya Üyelikler Domainler Falan Hep Onun İçerisinden Çağırılıo....

    Orta.Asp Kodları:


    <!--#include file="sayisalmerkez.asp"-->

    <%
    Set ayar = Server.CreateObject("ADODB.Recordset")
    ayar.open "SELECT * FROM ayarlar",vtbag
    %>

    <%
    Set kamp = Server.CreateObject("ADODB.Recordset")
    kamp.open "SELECT * FROM kampanya",vtbag
    %>

    <%
    if kamp("kdurum") = 1 then
    %>

    <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5" height="19">
    <tr>
    <td width="100%" height="19">
    <p align="center">
    <object classid="clsid27CDB6E-AE6D-11CF-96B8-444553540000" id="ShockwaveFlash1" width="<%=kamp("wboy")%>%" height="<%=kamp("hen")%>" border="0">
    <param name="_cx" value="32597">
    <param name="_cy" value="5953">
    <param name="FlashVars" value>
    <param name="Movie" value="<%=kamp("kyol")%>">
    <param name="Src" value="<%=kamp("kyol")%>">
    <param name="WMode" value="Window">
    <param name="Play" value="-1">
    <param name="Loop" value="-1">
    <param name="Quality" value="High">
    <param name="SAlign" value>
    <param name="Menu" value="-1">
    <param name="Base" value="<%=kamp("kyol")%>">
    <param name="AllowScriptAccess" value="always">
    <param name="Scale" value="ShowAll">
    <param name="DeviceFont" value="0">
    <param name="EmbedMovie" value="0">
    <param name="BGColor" value>
    <param name="SWRemote" value>
    <param name="MovieData" value>
    </object>
    </td>
    </tr>
    </table>
    </center>
    </div>

    <%
    end if
    %>

    <br>
    <div align="center">
    <center>
    <table border="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="168">
    <tr>

    <%
    Set kur = Server.CreateObject("ADODB.Recordset")
    kur.open "SELECT * FROM kur",vtbag
    %>

    <%
    Set orta = Server.CreateObject("ADODB.Recordset")
    orta.open "SELECT top 9 * FROM hosting",vtbag

    x = 1

    if not orta.eof then
    do while not orta.eof
    %>

    <td width="33%" height="165" valign="top">

    <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="93%" id="AutoNumber1" height="308">
    <tr>
    <td width="20%" style="border: 1px solid #D9F1FF" height="308">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="95%" id="AutoNumber4">
    <tr>
    <td width="33%" valign="top">
    <p align="left">

    <%
    if orta("kampanya") = 1 then
    %>

    <br>&nbsp;&nbsp;&nbsp;<img src="tema/yildiz.gif" width="15" height="16" alt="KAMPANYA">

    <%
    end if
    %>

    </span></font></td>
    <td width="33%">
    <p align="center">

    <p align="center"><b><font face="Tahoma" size="2" color="#666666"><%=orta("isim")%><br></font></b><div align="center">

    <%
    if orta("plat") = 0 then
    %>

    <img src="tema/linlogo.jpg">

    <%
    elseif orta("plat") = 1 then
    %>

    <img src="tema/winlogo.jpg">

    <%
    end if
    %>

    </td>
    <td width="34%">&nbsp;</td>
    </tr>
    </table>
    </center>
    </div>
    <b><font face="Tahoma" size="2" color="#666666">

    <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="95%" id="AutoNumber2" height="38">
    <tr>
    <td width="48%" height="19" bgcolor="#F0F0F0">
    <font face="Tahoma" color="#666666" style="font-size: 9pt">&nbsp;Fiyat</font></td>
    <td width="3%" height="19" align="center" bgcolor="#F0F0F0"><b>
    <font face="Tahoma" size="2" color="#333333">:</font></b></td>
    <td width="49%" height="19" align="right" bgcolor="#F0F0F0">
    <p align="right"><font face="Tahoma" size="2" color="#111111"><%=orta("fiyat")%>

    <%
    if ayar("kdv") = "0" then
    %>

    $

    <%
    elseif ayar("kdv") = "18" then
    %>

    $ + KDV

    <%
    end if
    %>

    </font>

    </td>
    </tr>
    <tr>
    <td width="48%" height="19">
    <font face="Tahoma" color="#666666" style="font-size: 9pt">&nbsp;YTL Değeri</font></td>
    <td width="3%" height="19" align="center"><b>
    <font face="Tahoma" size="2" color="#333333">:</font></b></td>
    <td width="49%" height="19" align="right"><font face="Tahoma" size="2" color="#111111">

    <%
    if ayar("doviz") = 0 then
    %>

    <%
    strAdres = "http://www.tcmb.gov.tr/kurlar/today.html"
    strVeri = VeriAL(strAdres)
    iDolar=InStr(strVeri,"USD" )
    strDolarAlis=Mid(strVeri,iDolar+50,10)
    %>

    <%hep1 = right((strDolarAlis),5)%>

    <%
    hop = strdolaralis * kur("dolar") / 100 + strdolaralis
    %>

    <%
    toplam = hop * orta("fiyat")
    toplamm = toplam * ayar("kdv") / 100 + toplam
    %>

    <%=formatnumber(toplamm,2)%> YTL

    <%
    elseif ayar("doviz") = 1 then
    %>

    <%
    Set fark = Server.CreateObject("ADODB.Recordset")
    fark.open "SELECT * FROM doviz",vtbag

    topver = fark("dolar") * orta("fiyat")
    topverr = topver * ayar("kdv") / 100 + topver
    %>

    <%=formatnumber(topverr,2)%> YTL

    <%
    end if
    %>

    </td>
    </tr>
    </table>

    <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="95%" id="AutoNumber3" height="114">
    <tr>
    <td width="48%" height="19" bgcolor="#F0F0F0">
    <font color="#666666"><span style="font-size: 9pt">&nbsp;Ödeme</span></font></td>
    <td width="3%" height="19" align="center" bgcolor="#F0F0F0">
    <font size="2" color="#333333"><b>:</b></font></td>
    <td width="49%" height="19" align="right" bgcolor="#F0F0F0"><font face="Tahoma" size="2" color="#111111"><%=orta("odeme")%></td>
    </tr>
    <tr>
    <td width="48%" height="19" bgcolor="#FFFFFF">
    <font color="#666666" style="font-size: 9pt">
    &nbsp;Alan</font></td>
    <td width="3%" height="19" align="center" bgcolor="#FFFFFF">
    <font size="2" color="#333333"><b>:</b></font></td>
    <td width="49%" height="19" align="right" bgcolor="#FFFFFF"><font face="Tahoma" size="2" color="#111111"><%=orta("alan")%>&nbsp;<%=orta("al anmb")%></td>
    </tr>
    <tr>
    <td width="48%" height="19" bgcolor="#F0F0F0">
    <font color="#666666" style="font-size: 9pt">&nbsp;Band</font></td>
    <td width="3%" height="19" align="center" bgcolor="#F0F0F0">
    <font size="2" color="#333333"><b>:</b></font></td>
    <td width="49%" height="19" align="right" bgcolor="#F0F0F0"><font face="Tahoma" size="2" color="#111111"><%=orta("band")%>&nbsp;<%=orta("tr afmb")%></td>
    </tr>
    <tr>
    <td width="48%" height="19" bgcolor="#FFFFFF">
    <font color="#666666" style="font-size: 9pt">
    &nbsp;Veritabanları</font></td>
    <td width="3%" height="19" align="center" bgcolor="#FFFFFF">
    <font size="2" color="#333333"><b>:</b></font></td>
    <td width="49%" height="19" align="right" bgcolor="#FFFFFF"><font face="Tahoma" size="1" color="#111111"><%=orta("vt")%></td>
    </tr>
    <tr>
    <td width="48%" height="19" bgcolor="#F0F0F0">
    <font color="#666666" style="font-size: 9pt">&nbsp;Panel</font></td>
    <td width="3%" height="19" align="center" bgcolor="#F0F0F0">
    <font size="2" color="#333333"><b>:</b></font></td>
    <td width="49%" height="19" align="right" bgcolor="#F0F0F0"><font face="Tahoma" size="2" color="#111111"><%=orta("panel")%></td>
    </tr>
    <tr>
    <td width="48%" height="19" bgcolor="#FFFFFF">
    <font color="#666666" style="font-size: 9pt">
    &nbsp;Lokasyon</font></td>
    <td width="3%" height="19" align="center" bgcolor="#FFFFFF">
    <font size="2" color="#333333"><b>:</b></font></td>
    <td width="49%" height="19" align="right" bgcolor="#FFFFFF"><font face="Tahoma" size="2" color="#111111"><%=orta("lokasyon")%></td>
    </tr>
    <tr>
    <td width="48%" height="19" bgcolor="#F0F0F0">
    <font color="#666666" style="font-size: 9pt">&nbsp;Diğer</font></td>
    <td width="3%" height="19" align="center" bgcolor="#F0F0F0">
    <font size="2" color="#333333"><b>:</b></font></td>
    <td width="49%" height="19" align="right" bgcolor="#F0F0F0"><font face="Tahoma" size="1" color="#111111"><%=orta("diger")%></td>
    </tr>
    <tr>
    <td width="48%" height="19" bgcolor="#FFFFFF">
    <font color="#666666" style="font-size: 9pt">&nbsp;Platform</font></td>
    <td width="3%" height="19" align="center" bgcolor="#FFFFFF">
    <font size="2" color="#333333"><b>:</b></font></td>
    <td width="49%" height="19" align="right" bgcolor="#FFFFFF"><font face="Tahoma" size="2" color="#111111">

    <%
    if orta("plat") = 0 then
    %>

    Linux

    <%
    elseif orta("plat") = 1 then
    %> Windows

    <%
    end if
    %>

    </td>
    </tr>
    <tr>
    <td width="48%" height="19" bgcolor="#F0F0F0" style="border-left: 1px solid #F0F0F0; border-right: 1px solid #F0F0F0; border-top-width: 1; border-bottom: 1px solid #F0F0F0">
    <font color="#666666" style="font-size: 9pt">&nbsp;Sınıf</font></td>
    <td width="3%" height="19" align="center" bgcolor="#F0F0F0" style="border-left-width: 1; border-right: 1px solid #F0F0F0; border-top-width: 1; border-bottom: 1px solid #F0F0F0">
    <font size="2" color="#333333"><b>:</b></font></td>
    <td width="49%" height="19" align="right" bgcolor="#F0F0F0" style="border-left-width: 1; border-right: 1px solid #F0F0F0; border-top-width: 1; border-bottom: 1px solid #F0F0F0"><font face="Tahoma" size="2" color="#111111">

    <%
    if orta("tur") = 0 then
    %>

    Hosting

    <%
    elseif orta("tur") = 1 then
    %> Reseller

    <%
    elseif orta("tur") = 2 then
    %> Dedicated

    <%
    end if
    %>

    </td>
    </tr>
    </table>
    <p><a href="default.asp?hosturk=hizmet&al=<%=orta("id")% >"><img border="0" src="tema/<%=ayar("tema")%>/sepet.gif"></a><br>
    &nbsp;</p>
    </center>
    </div>
    </center>
    </div>
    </td>
    </tr>
    </table>
    </center>
    </div><br>
    </td>

    <%
    emin = ayar("kare")
    %>

    <%
    if x mod emin = 0 Then
    %>

    <%
    response.write "<tr>"
    end if
    %>

    <%
    x = x + 1
    %>

    <%
    orta.movenext
    loop
    end if
    %>
    </tr>

    </table>
    </center>
    </div>
  • 07-01-2010, 21:37:49
    #4
    Üyeliği durduruldu
    konu çok acil arkadaşlar..
  • 08-01-2010, 02:21:53
    #5
    Üyeliği durduruldu
    Server.Execute("default.asp")

    execute yerine bi default.asp yide include etsene birder include bölümünden önce bi response.end koy bakalım hangi satırda hata
  • 08-01-2010, 02:30:21
    #6
    <%
    '##### Rewrite Kontrolü --
    Dim strQry : strQry = Request.ServerVariables("QUERY_STRING")
    If Len(strQry)> 0 Then
    Dim splBol : splBol = Split(strQry,"/")
    Dim strBol : strBol = splBol(UBound(splBol))
    Session("hosturk") = strBol
    If Len(strBol) > 2 Then
    %><!--#include file="orta.asp"--><%
    Else
    Response.Clear
    Response.Write("<h1>404 - Bulunamadı</h1>")
    Response.End
    End If
    End If
    '##### Rewrite Kontrolü --
    %>

    Böyle deneyin..
  • 08-01-2010, 16:42:21
    #7
    Üyeliği durduruldu
    linebilisim adlı üyeden alıntı: mesajı görüntüle
    <%
    '##### Rewrite Kontrolü --
    Dim strQry : strQry = Request.ServerVariables("QUERY_STRING")
    If Len(strQry)> 0 Then
    Dim splBol : splBol = Split(strQry,"/")
    Dim strBol : strBol = splBol(UBound(splBol))
    Session("hosturk") = strBol
    If Len(strBol) > 2 Then
    %><!--#include file="orta.asp"--><%
    Else
    Response.Clear
    Response.Write("<h1>404 - Bulunamadı</h1>")
    Response.End
    End If
    End If
    '##### Rewrite Kontrolü --
    %>

    Böyle deneyin..


    Bu Şekildede Bütün Linklerim Gitti Kardeş. bir Linke Tıkladımmı Etraf Çalışmıyor...
  • 12-01-2010, 00:31:17
    #8
    Üyeliği durduruldu
    Sorun Çözülmüştür Hepinize Teşekkürler.. Konu kilitlene Bilir..