Block a URL/path wild card in htaccess


CVE
 Share

Recommended Posts

Does anyone know how to block a URL/path wild card in htaccess for a 403?

I have a path of /feed/ and would like to block it as such /feed/*

Reason I ask is that I disabled the RSS feed from my phpBB board and now Google et all are 404ing on the /feed path and they have yet to obey my robots. So I'd like to just 403 the path since it no longer exists so that I don't see the 404 in my phpBB ACP anymore. I can see 404s in the ACP using an extension for phpBB.

 

Should be relatively simple, but try as I might, three search engines I used didn't have the pertinent information I was looking for.  And I'm too lazy to pour through all of the Apache documentation for a simple piece of htaccess code.

 

Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share