English 中文(简体)
htaccess mod_rewrite redirection if a specificstring in it [los]
原标题:htaccess mod_rewrite redirection if a specific string in it [closed]

我有一些 we子被老的开发商留在我的帽子里,希望将其固定在301个方向上。 我愿把所有导游转播到网页上。

页: 1

So literally redirect all urls which contains perpage/www.domain.com 页: 1 the version without it.

是否有任何想法?

cheers, /Marcin

最佳回答

Enable mod_rewrite and .htaccess through httpd.conf and then put this code in your .htaccess under DOCUMENT_ROOT directory:

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /

RewriteRule ^(.*)/perpage/www.domain.com/?$ $1/ [L,NC,R=301]
问题回答

暂无回答




相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签