Reputation: 11
This is my .htaccess
code:
AddHandler x-httpd-php5-3 .php RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}/index.html !-f RewriteCond %{REQUEST_FILENAME}/index.php !-f RewriteRule . index.php [L] RewriteCond %{THE_REQUEST} /welcome/[/?\s] [NC] RewriteRule ^ / [R=301,L]
Upvotes: 1
Views: 820
Reputation: 786011
You can use this rule in root .htaccess:
AddHandler x-httpd-php5-3 .php
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} /welcome[/?\s] [NC]
RewriteRule ^ / [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
Upvotes: 0