[Linux-programlama] Re: pardus apache mod_rewrite

---------

[Linux-programlama] Re: pardus apache mod_rewrite

From: Baris CUHADAR <pardust_at_gmail.com>
Date: Tue, 21 Apr 2009 22:52:02 +0300
Message-Id: <1240343523.15168.0.camel@localhost.localdomain>

Sunucu ayar dosyasýnda AllowOverride none parametresini all yaparsanýz
sorununuz çözülür.

On Tue, 2009-04-21 at 20:57 +0300, Aykut Sunguroðlu wrote:
> Herkese merhaba,
> Pardus'ta Apache için mod_rewrite sorunum var. Apache, mod_php vs.
> paketleri normal yoldan kurdum.
> http://www.ozgurlukicin.com/forum/yazilim-gelistirme/1899/?page=1
> adresindeki önerileri yaptým. Buna benzer önerileri araþtýrýp yaptým.
> Ama hala url rewriting yapamýyorum.
> /home/kullanici/public_html klasöründe çalýþýyorum.
> phpinfo() ile baktýðýmda mod_rewrite görünüyor.
> Sorun ne olabilir?
>
> Dosyalarým da þunlar:
>
> index.php
> <?php
> include 'ana.php';
> $sayfa=$_GET["sayfa"];
> if (!$sayfa){
> return yazi();
> }
> else{
> $sayfa();
> }
> ?>
> ------------------------
> ana.php
> <?php
> function yazi(){
> ?>
> <h1>yazi</h1>
> yazi
> <br>
> haber
> <br>
> urun
> <?php
> }
> function haber(){
> ?>
> <h1>haber</h1>
> yazi
> <br>
> haber
> <br>
> urun
> <?php
> }
> function urun(){
> ?>
> <h1>urun</h1>
> yazi
> <br>
> haber
> <br>
> urun
> <?php
> }
> ?>
> --------------------------
> .htaccess
> Options +FollowSymLinks
> RewriteEngine On
> RewriteRule ^s-([A-Za-z0-9]+)\.html$ index.php?sayfa=$1
> --------------------------
>
> Teþekkürler...
>
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama_at_liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama

_______________________________________________
Linux-programlama mailing list
Linux-programlama_at_liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Received on Tue 21 Apr 2009 - 21:29:13 EEST

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.