مبرمج
04-21-2009, 08:11 AM
السلام عليكم
احتاج احد يعدل لي الكود بملف htaccess
ها هو الكود
PHPIndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
order deny,allow
allow from all
order deny,allow
deny from all
AuthName mohamed.com
ExpiresActive On
ExpiresByType image/gif "access 1 week"
ExpiresByType image/jpg "access 1 week"
ExpiresByType image/jpeg "access 1 week"
ExpiresByType image/png "access 1 week"
ExpiresByType text/css "access 1 week"
ExpiresByType text/js "access 1 week"
ExpiresByType application/x-shockwave-flash "access 1 week"
ExpiresByType application/x-java****** "access 1 week"
RewriteEngine on
RewriteRule ^cat(.*).html cat.php?id=$1
RewriteRule ^cat-page-$1-id-$2(.*).html cat.php?page=$1&id=$2
RewriteRule ^index-page-(.*).html index.php?page=$1
بحيث اريد الاقسام الي هي cat.php?id=$1 ان تكون باسم مجلد وليس اسم ملف
واريد اسم او رقم الصفحة يظهر على هذا الشكل p1 او p2.....
احتاج احد يعدل لي الكود بملف htaccess
ها هو الكود
PHPIndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
order deny,allow
allow from all
order deny,allow
deny from all
AuthName mohamed.com
ExpiresActive On
ExpiresByType image/gif "access 1 week"
ExpiresByType image/jpg "access 1 week"
ExpiresByType image/jpeg "access 1 week"
ExpiresByType image/png "access 1 week"
ExpiresByType text/css "access 1 week"
ExpiresByType text/js "access 1 week"
ExpiresByType application/x-shockwave-flash "access 1 week"
ExpiresByType application/x-java****** "access 1 week"
RewriteEngine on
RewriteRule ^cat(.*).html cat.php?id=$1
RewriteRule ^cat-page-$1-id-$2(.*).html cat.php?page=$1&id=$2
RewriteRule ^index-page-(.*).html index.php?page=$1
بحيث اريد الاقسام الي هي cat.php?id=$1 ان تكون باسم مجلد وليس اسم ملف
واريد اسم او رقم الصفحة يظهر على هذا الشكل p1 او p2.....