Welcome Guest, Not a member yet? Register   Sign In
.htaccess, 301 redirect and question mark
#2

I found it:

Code:
<IfModule mod_rewrite.c>    
    RewriteEngine On
    RewriteBase /
    
    RewriteRule ^my-page http://www.domain.nl/contact [R=301,L]
    
    RewriteCond %{REQUEST_URI} ^system.*    
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    RewriteCond %{REQUEST_URI} ^application.*    
    RewriteRule ^(.*)$ /index.php?/$1 [L]
    
    #RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteRule ^(.*)$ index.php?/$1 [L]        
        
    RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteCond $1 !^(index\.php|images|robots\.txt|css)
    
    RewriteRule ^(.*)$ index.php?/$1 [L]    
    
            
</IfModule>

Note : (and that was also my problem) delete the cache after every change.
I have RewriteRule ^my-page http://www.domain.nl/contact [R=301,L] before, but didn't cleared my history (firefox)
Reply


Messages In This Thread
RE: .htaccess, 301 redirect and question mark - by Krycek - 03-17-2015, 03:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB