apache - Redirect all page on a domain to one file -


I redirect all pages of domains to a domain on a page by using htaccess / mod_rewrite Seeing.

Actually, I want to request any page for the domain that returns the holding page [which is index.php] to domain.com

My Most of the efforts have yet caused errors.

.k

There is a need to exclude such a destination that you are redirecting in this way:

  RewriteRule rewrite engine! ^ Index \ .php $ / endex.php [L, R = 301]  

If you want to redirect only files that are not mapped to existing files in the file system If so, add this condition:

  Rewrite the number% {REQUEST_FILENAME}! -   

But in that case you should answer with 404.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -