السلام عليكم ورحمة الله وبركاته ،،
اخواني ..
انا حاليا اعمل على تحويل روابط بال mod_rewriter ..
المشكلة هي ..
لدي مثلا ثلاث ملفات
index.php
search.php
any_file.php
اللي اريده لو احط الرابط .. اريده كالتالي :
الرابط بعد التحويل << الرابط المدخل
www.mysite.com/ >> www.mysite.com/index.php
www.mysite.com/search >> www.mysite.com/search.php
www.mysite.com/any_file >> www.mysite.com/any_file.php
ولدي في الخادم المحلي شغال تمام ..
وهذا الhtaccess
أما في الموقع مايسوي تحويل للملف .. كل التحويلات تروح لملف Index.php ..كود:# Tell Apache to load mod_rewrite. RewriteEngine On # Rewrite URLs for the location starting at / # Note this is URL location, not a path to your web root. RewriteBase /flasher/ # If the request asks for a file or directory that doesn't exist RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # send the request to index.php. RewriteRule . index.php [L]
اتمنى مساعدتكم ..
مع الشكر