Skip to content

Commit

Permalink
add lookahead redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
oraNod committed Nov 7, 2024
1 parent 1578608 commit b1f4b29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ RewriteEngine On
# Tells the server that all paths in rewrite rules are relative to the root directory
RewriteBase /

# Negative lookahead that directs pages to the ansible subdirectory
# except for the pages specified in parenthesis
RedirectMatch permanent "^/((?!index|404|automation.*|ansible_community|collections|community|core.*|galaxy|lint|ecosystem|users|developers|maintainers|platform|ansible-prior*)[^/]+)\.html" "/ansible/$1.html"



############################################################
Expand Down

0 comments on commit b1f4b29

Please sign in to comment.