2011-09-14 95 views
0

我放了一条规则来重写一些链接。为什么我的网址重定向到另一个?

此网址

http://www.steffiandmihanta.com/images/servane/ms-servane-5_n_nette_h540.jpg 

重定向到

http://www.steffiandmihanta.com/main/wp-content/themes/MS-MangoBerry/timthumb.php?src=https://s3-eu-west-1.amazonaws.com/steffiandmihanta/main/wp-content/gallery/servane/ms-servane-5_n_nette.jpg&q=100&h=540 

我的htaccess是:

RewriteRule ^images/(.*)_h(.*).jpg$ http://www.steffiandmihanta.com/main/wp-content/themes/MS-MangoBerry/timthumb.php?src=https://s3-eu-west-1.amazonaws.com/steffiandmihanta/main/wp-content/gallery/$1.jpg&q=100&h=$2 [NC,L] 

如何修改它不重定向到URL丑?

感谢

回答

0

也许你的意思是这样的:

RewriteRule ^images/(.*)_h(.*).jpg$ http://www.steffiandmihanta.com/main/wp-content/themes/MS-MangoBerry/timthumb.php?src=https://s3-eu-west-1.amazonaws.com/steffiandmihanta/main/wp-content/gallery/$1.jpg&q=100&h=$2 [L,QSA] 
+0

我改变了'[NC,L]''到[L,QSA]',但漂亮的链接始终重定向到丑陋的链接 – Steffi

相关问题