开发者

redirect with .htaccess a dynamic URL to a new static page

开发者 https://www.devze.com 2023-04-07 03:56 出处:网络
How can I redirect with .htaccess a dynamic URL to a new static page, i.e. pages like: /page2.php?view=preview&image=33&category=2

How can I redirect with .htaccess a dynamic URL to a new static page, i.e. pages like:

/page2.php?view=preview&image=33&category=2
/page2.php?view=thumbnailList&category=1
/page2.php?view=thumbnailList&category=3

etc, to:

/index.php/photo-gallery

There are many pages like the 3 exa开发者_Python百科mples on top (and theyt are indexed by Google) and I would like to redirect all the pages which start with /page2.php? to the new location.


You are looking for mod_rewrite (if you use apache).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号