Skip to content

techact/shellscript

Repository files navigation

shellscript

The largest heading

The second largest heading

The smallest heading

Credits

What we are doing here is mostly collecting useful snippets from all over the interwebs (for example, a good chunk is from Apache Server Configs) into one place. While we’ve been trying to credit where due, things might be missing. If you believe anything here is your work and credits should be given, let us know, or just send a PR.

#!/usr/bin/python
my_input = input("Enter number : ")
print my_input
  • Finish my changes
  • Push my commits to GitHub
  • Open a pull request

Table of Contents

Rewrite and Redirection

Note: It is assumed that you have mod_rewrite installed and enabled.

Force www

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]

Source

Redirect a Single Page

Redirect 301 /oldpage.html http://www.example.com/newpage.html
Redirect 301 /oldpage2.html http://www.example.com/folder/

About

Shell scripts

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages