Forum Moderators: phranque
# -FrontPage-IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.example.com
AuthUserFile /home/username/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/username/public_html/_vti_pvt/service.grp# I added this but it doesn't work
RewriteEngine ON
RewriteRule ^/somepage\.html$ - [G]
the example above is exactly what I have to deal with and I can manually edit it but here is where I'm stuck. Is there another way I can do a 410 here?
Jim
In my particular case it is on a virtual host. They do have a form page that will add a 301 or 302 automatically. I was wondering if there was something i could do using the method they already accept.
The automatic device will insert this into the .htaccess below the FP extensions.
RedirectMatch permanent ^/wadget.html$
http://example.com/widget.html
If I select a temporary redirect in the form it will use similar code but switch to RedirectMatch temp
they are not even using the rewrite engine it seems.
is there a similar method to invoke a 410?
if there is - what i plan to do is search through the .htacces files and see where this code was inserted automatically (if anywhere other than the root) and use the 410 method (if there is one)
To the best of my knowledge, the forced 410 response is only available using mod_rewrite, and not the Redirect and RedirectMatch directives of mod_alias.
Jim
You are starting to push beyond the usual capabilities of control panels here.
Yes I realize that - just thought if there was another way to force 410 I could use the method most compatable with the way the server is already set up.
It looks like I could use mod_rewrite in this case - as outlined in the thread you pointed out - I was just hoping to find a simpler solution using mod_alias since that is already in place.
#in the root (www) folder .htaccess put
RewriteEngine on
Options +FollowSymLinks
RewriteRule ^widget\.html$ - [G]
and also ensure
Options +FollowSymLinks
in the other FP folders mentioned
is that correct?
also would you recommend inserting this code before or after the FP stuff in the root folder or does it matter?
posted by choppin2256
Then replace:"Options None" with "Options +FollowSymLinks" in every single htaccess file that you can find. There will only be about 7 of these files according to the subdirectories I listed below. Here are some subdirectories where they may be found:
_vti_bin (_vti_adm, _vti_aut)
_vti_cnf
_vti_log
_vti_pvt
_vti_txt