ترفند های htaccess - سوالات

RainDigital

Member
سلام.

تاپیک رو که قفل کرده بودین، نمیشد سوال کرد. یه تاپیک جرا باز کردم.


اولین سوال.

من کدهای ترنسلیت رو گذاشتم ولی هیچ کدوم کار نمیکنن:


شاید روش لینک دادن من اشتباهه

PHP:
<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 81.91.129.126
deny from 64.233.187.99
deny from 85.15.1.10
deny from 85.133.128.252
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
Options +FollowSymlinks 
RewriteEngine on 
RewriteRule ^(.*)-fr$ http://www.google.com/translate_c?hl=fr&sl=en&u=http://www.phpfa.com/$1 [r,nc] 
RewriteRule ^(.*)-de$ http://www.google.com/translate_c?hl=de&sl=en&u=http://www.phpfa.com/$1 [r,nc] 
RewriteRule ^(.*)-es$ http://www.google.com/translate_c?hl=es&sl=en&u=http://www.phpfa.com/$1 [r,nc] 
RewriteRule ^(.*)-it$ http://www.google.com/translate_c?hl=it&sl=en&u=http://www.phpfa.com/$1 [r,nc] 
RewriteRule ^(.*)-pt$ http://www.google.com/translate_c?hl=pt&sl=en&u=http://www.phpfa.com/$1 [r,nc]
 

RainDigital

Member
من یه فکر دارم:D

PHP:
RewriteRule /^(.*)-fr$ http://www.google.com/translate_c?hl=fr&sl=en&u=http://www.phpfa.com/$1 [r,nc] 
RewriteRule /^(.*)-de$ http://www.google.com/translate_c?hl=de&sl=en&u=http://www.phpfa.com/$1 [r,nc] 
RewriteRule /^(.*)-es$ http://www.google.com/translate_c?hl=es&sl=en&u=http://www.phpfa.com/$1 [r,nc] 
RewriteRule /^(.*)-it$ http://www.google.com/translate_c?hl=it&sl=en&u=http://www.phpfa.com/$1 [r,nc] 
RewriteRule /^(.*)-pt$ http://www.google.com/translate_c?hl=pt&sl=en&u=http://www.phpfa.com/$1 [r,nc]
 

hmd13

New Member
من توي .htaccess نوشتم:‌
Redirect /blog/index.php http://www.domaineman.net
اما به جاي اين كه وبلاگمو بياره رو شاخه ي دومين اصلي، نه تنها روي دومين اصلي هنوز همون ليست دايركتوري ها رو نمايش مي ده،‌ كه وقتي روي آدرس وبلاگ مي رم، يعني توي شاخه ي بلاگ، منو مي فرسته روي شاخه ي اصلي دومين و دوباره همون دايركتوري رو نشونم مي ده. چرا اينجوريه به نظر شما؟
 

جدیدترین ارسال ها

بالا