Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- htaccess ignoring [G,NC]


scooterdude - 2:10 pm on Jan 8, 2013 (gmt 0)


Hi All, I am trying to return 410 gone for a few files removed from a domain which has wordpress on it now

# BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^unwanted/file-directory/file1\.htm$ - [G,NC]
RewriteRule ^unwanted/file-directory/file1\.htm$ - [G,NC]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


The code above works if I comment out the last 2 rewrite rules, but if I leave them like above , server executes them

According to Apache documentation the [L] is implied, but even when I use [G,L] its not working


Thread source:: http://www.webmasterworld.com/apache/4534296.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com