1
votes

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]    
1

1 Answers

0
votes

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]