You are here: modrewrites (different rewrites but same destination - is this possible) ? « PHP Programming Language « IT news, forums, messages
modrewrites (different rewrites but same destination - is this possible) ?

Posted by Andrew on 12/19/05 03:34

hi All,
is it possible to do this?

for instance:

http://www.domain.com/pdisplay.php?page=p2/ps2antigrav&type=htm
to
http://www.domain.com/ps2antigrav.html

and

http://www.domain.com/gdisplay.php?page=g2/g2antigrav&type=htm
to
http://www.domain.com/g2antigrav.html

with a modrewrite:

RewriteEngine On
RewriteBase /
RewriteRule ^([^/]+)\.html$ pdisplay.php?page=p2/$1&type=htm
RewriteRule ^([^/]+)\.html$ gdisplay.php?page=g2/$1&type=htm

it basically works for the first one but not the second? Anyone know
why?
cheers,
Andrew

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация