Ömer Ücel

January 23, 2008

Php ve Mod_rewrite

Filed under: Genel — Tags: — Ömer Ücel @ 10:30 pm

Kalıcı bağlantılar konusunda ufak bir araştırma yaptım. Daha önce bu konuda bilgim yoktu. siteadi.com/sayfa türü bir bağlantı için aşağıdaki gibi bir .htaccess dosyasını wordpressin .htaccess dosyası ve bir kaç bağlantıdaki bilgi ile oluşturmayı başardım:

 
# BEGIN
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteBase /omerucel/www/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?sayfa=$1 [L]
</ifmodule>
# END
 

Kendi sunucumda ve uzaktaki sunucuda test ettim, bir sorun çıkmadı.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress