Answers for "redirect to index.php and www"

PHP
3

redirect php

< ?php header("Location: http://www.redirect.to.url.com/"); ?>
Posted by: Guest on September-16-2020
2

redirect from index.php

RewriteCond %{REQUEST_URI} /index.php
RewriteRule ^(.*)$ http://site.ru/ [R=301,L]
Posted by: Guest on November-26-2020
0

htaccess route to index.php

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.php [L,QSA]


Using Sub directory:
RewriteRule ^.*$ /mvc/index.php [L,QSA]
Posted by: Guest on June-15-2020

Browse Popular Code Answers by Language