You are here: Re: can you redirect every existing html page through a php function? « PHP Programming Language « IT news, forums, messages
Re: can you redirect every existing html page through a php function?

Posted by Stephen Kay on 10/02/78 11:43

in article 48pjs3FldgsjU1@individual.net, Simon at spambucket@example.com
wrote on 3/27/06 2:53 AM:

> What server are you using?
> If you are using apache then you can use RewriteRule ... It will do exactly
> what you are after.
>
> RewriteRule ^([^/]+)/([^/]+).html$ /dopage.php?p=$1 [L]
>
> Then you can worry about what dopage.php actually does.

Hi Simon,
I've been fooling around with this, and it shows signs of working for things
like:

www.mysite.com/folder/somepage.html

However, it doesn't work for something that is in the root html folder,

www.mysite.com/somepage.html

Since I don't understand the syntax (yet), any suggestions?

Thanks!
--
Stephen Kay
Karma-Lab sk@karma-lab.NOSPAM.com
^^^^^^^

 

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

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