は、以下のことを試してみてくださいありがとう永久に "ヘッダー。あなたは、内部で長いURLを指すように短いURLをご希望の意味ならば、あなたは、円形のリダイレクトを回避しなければなりません
:
RewriteRule ^product/info/.*$ - [L] # don't redirect again
RewriteRule ^(.*)$ /product/info/$1 [L] # redirect everything else
最初の行はwww.example.com/product/をリダイレクトしようと停止しますinfo/laptop to www.example.com/product/info/product/info/laptopなど、 ?あなたはすべてのビット今それを再配置する必要があり、何かを - あなたは、インデックスに、などIMG、phpMyAdminは、以外のすべてをリダイレクトしようとしているよう何でもあなたのコメントに基づいて
編集
、それが見えます
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/(index\.php|img|phpmyadmin|images|user|wmd|FCKeditor|map|jscalendar|aurigma|xajax_js|css|js|include|floatbox|helper|styles|ajax|robots\.txt|favicon\.ico|product/info/(.*))
RewriteRule ^(.*)$ - [L] # don't redirect these
RewriteRule ^(.*)$ /product/info/$1 # redirect everything else
私は最初の書き換えの「product/info /(.*)」部分で100%ではありません。問題が解決しない場合は、これを試してみてください。
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/(index\.php|img|phpmyadmin|images|user|wmd|FCKeditor|map|jscalendar|aurigma|xajax_js|css|js|include|floatbox|helper|styles|ajax|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ - [L] # don't redirect these
RewriteRule ^product/info/.*$ - [L] # don't redirect again
RewriteRule ^(.*)$ /product/info/$1 [L] # redirect everything else
編集2
あなたのコメントに基づいて最終的な答え:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/(index\.php|img|phpmyadmin|images|user|wmd|FCKeditor|map|jscalendar|aurigma|xajax_js|css|js|include|floatbox|helper|styles|ajax|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ - [L] # don't redirect these
# pass controllers to index.php
RewriteCond %{REQUEST_URI} ^/(home|browse|calendar|star|member|enter|product)
RewriteRule ^(.*)$ /index.php?$1 [L]
# pass other things than controllers to /index.php?/product/info/$1
RewriteRule ^(.*)$ /index.php?/product/info/$1 [L] # redirect everything else
なぜ二重引用符?式は[a-zA-Z0-9_ \ s \ '〜%、:!()\ ._ =& - ] + –