Skip to content

Commit

Permalink
update RewriteRule
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay committed Nov 14, 2023
1 parent a18fce6 commit 2b2f37d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/_extra/.htaccess
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
RewriteEngine on
RewriteRule "^/blog/$" "/blog.html" [R=301,L]

# top level categories
RewriteRule ^blog/$ /blog.html [R=301,L]
RewriteRule ^machine-learning/$ /machine-learning.html [R=301,L]
RewriteRule ^python/$ /python.html [R=301,L]
RewriteRule ^it/$ /it.html [R=301,L]
RewriteRule ^linux/$ /linux.html [R=301,L]
RewriteRule ^open-source-contributions/$ /index.html [R=301,L]

0 comments on commit 2b2f37d

Please sign in to comment.