Skip to content

Instantly share code, notes, and snippets.

@luckydevilru
Last active February 10, 2023 09:14
Show Gist options
  • Save luckydevilru/cc82e450e2a05abd210f34899ee9ad8f to your computer and use it in GitHub Desktop.
Save luckydevilru/cc82e450e2a05abd210f34899ee9ad8f to your computer and use it in GitHub Desktop.
правила в htaccess
# 302 редирект
RewriteCond %{REQUEST_URI} /documents/obnovleniya-v-rabote-platformy/$
RewriteRule ^(.*)$ http://%{SERVER_NAME}/documents/poryadok-raboty-platformy/ [R=302,NC,L]
# 301 редирект
Redirect 301 /dir1/ http://%{SERVER_NAME}/dir2/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment