"Not Found
The requested URL /index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
php sayfalar sayfalar klasöründe
.htaccess dosyası
order allow,deny
deny from 213.153.156.110
allow from all
AddDefaultCharset UTF-8
Options -Indexes
php_value upload_max_filesize 20M
php_value post_max_size 20M
DirectoryIndex index.php
RewriteEngine on
RewriteRule ^sayfa-([a-zA-Z0-9\-_]+)?$ index.php?sayfa=$1 [L,QSA]
RewriteRule ^hizmet-(.*?)?$ index.php?sayfa=hizmet-detay&id=$1 [L,QSA]
RewriteRule ^referans-(.*?)?$ index.php?sayfa=referans-detay&id=$1 [L,QSA]
RewriteRule ^urun-detay-(.*?)?$ index.php?sayfa=urun-detay&id=$1 [L,QSA]
RewriteRule ^duyurular-(.*?)?$ index.php?sayfa=duyuru-detay&id=$1 [L,QSA]
RewriteRule ^duyuru-sayfa-(.*?)?$ index.php?sayfa=duyuru&s=$1 [L,QSA]
RewriteRule ^kat-urun-(.*?)?$ index.php?sayfa=urun&id=$1&s=$1 [L,QSA]
düzenledigim htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^duyuru-sayfa-(.*?)$ test.php?sayfa=duyuru&id=$1 [L,QSA]
RewriteRule ^referans-sayfa-(.*?)$ test.php?sayfa=referans&id=$1 [L,QSA]
test.php
if (isset($_GET["sayfa"])) {
echo $_GET["sayfa"] . "<->" . $_GET["id"];
} else echo "non test";
?>
index.php
session_start();
include("admin/include/baglan.php");
include("admin/include/fonksiyonlar.php");
?>
=$ayar['site_title']?> -
$sayfa=isset($_GET['sayfa']) ? addslashes($_GET['sayfa']) : "Anasayfa";
echo ucfirst($sayfa);
?>
<script></script>
<script>
$(function(){
$("#teklif").click(function(){
$.ajax({
type: "POST",
url: "teklif.php",
data: $('#offterForm').serialize(),
error:function(){ alert("Bir hata algılandı."); },
success: function(veri) { alert(veri); document.forms["form2"].reset(); }
});
});
});
</script>
<script>
</script>
<script>
$(function(){
$(document).on("keydown",window,function(a){
if(a.which == 123)
return false;
})
})
</script>
error_reporting(0);
$sayfa=isset($_GET['sayfa']) ? addslashes($_GET['sayfa']) : "";
if($sayfa=="kurumsal"){
$kurumsal='class="grayActive"';
}else if(
$sayfa=="hizmetlerimiz"){
$hizmetlerimiz='class="orangeActive"';
}else if(
$sayfa=="hizmet-detay"){
$hizmetlerimiz='class="orangeActive"';
}else if($sayfa=="referanslar"){
$referanslar='class="blueActive"';
}else if($sayfa=="duyuru"){
$duyuru='class="blogActive"';
}else if($sayfa=="duyuru-detay"){
$duyuru='class="blogActive"';
}else if($sayfa=="iletisim"){
$iletisim='class="redActive"';
}else{
$anasayfa='class="homeActive"';
}
?>
if(isset($_GET['sayfa'])){
$s = $_GET['sayfa'];
switch($s){
case 'anasayfa';
require_once("sayfalar/anasayfa.php");
break;
case 'kurumsal';
require_once("sayfalar/kurumsal.php");
break;
case 'hizmetlerimiz';
require_once("sayfalar/hizmetlerimiz.php");
break;
case 'hizmet-detay';
require_once("sayfalar/hizmet_detay.php");
break;
case 'referanslar';
require_once("sayfalar/referanslar.php");
break;
case 'referans-detay';
require_once("sayfalar/referans_detay.php");
break;
case 'duyuru';
require_once("sayfalar/duyuru.php");
break;
case 'duyuru-detay';
require_once("sayfalar/duyuru_detay.php");
break;
case 'iletisim';
require_once("sayfalar/iletisim.php");
break;
default:
require_once("sayfalar/anasayfa.php");
}
}else{
require_once("sayfalar/anasayfa.php");
}
?>
<script></script>
<script></script>
<script></script>
<script></script>
<script>
$("#layerslider").layerSlider({
responsive: true,
responsiveUnder: 960,
layersContainer: 960,
hoverPrevNext: false,
});
</script>
<script></script>
<script>
$(function(){
$('.teamSlider').bxSlider({
responsive: true,
auto: true,
controls:true,
pager:false,
slideWidth: 180,
minSlides: 2,
maxSlides: 4,
moveSlides: 2,
slideMargin: 60
});
});
</script>
<script></script>
<script></script>
<script>
$(function(){
$("html,body").animate({
scrollTop : 20
},1000);
//Lazy Load
$("img.lazy").lazyload();
//Works Filter
$('#Grid').mixItUp();
$(".worksFilter li").click(function(){
$(".worksFilter li a").removeClass("active");
$("a",this).addClass("active");
});
});
</script>
<script>
$(function(){
//Lazy Load
$("img.lazy").lazyload();
$('.worksSlider').bxSlider({
mode: 'horizontal',
responsive: true,
captions: false,
pager : false,
auto : true,
nextSelector: '#slider-next',
prevSelector: '#slider-prev',
nextText: '',
prevText: ''
});
});
</script>