Question

//here is my htaccess

<IfModule mod_rewrite.c>   
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^glamestates\.co\.uk$ [NC]
    RewriteRule ^.*$ http://www.glamestates.co.uk%{REQUEST_URI} [R=301,L] # <-- Mind the 'L'!

    RewriteRule ^$ app/webroot/    [L]
    RewriteRule (.*) app/webroot/$1 [L]
</IfModule>

where about to add this google webmaster tools link in my htaccess

glamestates.co.uk/googlec7feca3a4513beef.html 

what I have got so far but this doesn't work. I added in line five

RewriteRule ^glamestates\.co\.uk\googlec7feca3a4513beef\.html$ http://www.glamestates.co.uk\googlec7feca3a4513beef.html%{REQUEST_URI} [R=301,L]

I have already put this question here since many day nobody answered

Was it helpful?

Solution 2

just need to paste the googlec7feca3a4513beef.html file into Webroot folder rather than Root

OTHER TIPS

Still not 100% clear about what you're asking, but I think perhaps you want this:

<IfModule mod_rewrite.c>   
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^glamestates\.co\.uk$ [NC]

    RewriteRule ^googlec7feca3a4513beef\.html$ $0 [L]

    RewriteRule ^.*$ http://www.glamestates.co.uk%{REQUEST_URI} [R=301,L] # <-- Mind the 'L'!

    RewriteRule ^$ app/webroot/    [L]
    RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top