.htaccess - Redirect all page requests to one page -


I need to redirect all page requests (PHP, if that case) to a specific page on a specific domain (again From, php) on that domain I am looking for a .htaccess, mod_rewrite solution for easy implementation.

Try this rule:

  Rewrite $ 1! = Index.php Rewrite. + \. Php $ index.php [L]  

It will redirect all requests that end in the URL path .php in index.php as the .htaccess file in the same directory.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -