Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A archive-my-tweets
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 14
    • Issues 14
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Andrew M. Whalen
  • archive-my-tweets
  • Wiki
  • Advanced configuration installation

Advanced configuration installation · Changes

Page history
Updated Advanced configuration (markdown) authored Aug 02, 2014 by Benoît.S's avatar Benoît.S
Show whitespace changes
Inline Side-by-side
Advanced-configuration---installation.md 0 → 100644
View page @ 257a0ffd
# URL Rewriting
## For NginX
For NginX you need to set the rewrite rules in your vhost configuration file. Here an example for http://www.example.com/tweets/ :
location /tweets/ {
rewrite ^/tweets/([0-9]+)/?$ /tweets/index.php?id=$1 last;
rewrite "^/tweets/archive/([0-9]{4})/([0-9]{2})/([0-9]{2})/?$" /tweets/index.php?year=$1&month=$2&day=$3 last;
rewrite "^/tweets/archive/([0-9]{4})/([0-9]{2})/([0-9]{2})/page/([0-9]+)/?$" /tweets/index.php?year=$1&month=$2&day=$3&page=$4 last;
rewrite "^/tweets/archive/([0-9]{4})/([0-9]{2})/?$" /tweets/index.php?year=$1&month=$2 last;
rewrite "^/tweets/archive/([0-9]{4})/([0-9]{2})/page/([0-9]+)/?$" /tweets/index.php?year=$1&month=$2&page=$3 last;
rewrite "^/tweets/archive/([0-9]{4})/?$" /tweets/index.php?year=$1 last;
rewrite "^/tweets/archive/([0-9]{4})/page/([0-9]+)/?$" /tweets/index.php?year=$1&page=$2 last;
rewrite ^/tweets/client/(.*)/$ /tweets/index.php?client=$1 last;
rewrite ^/tweets/client/(.*)/page/([0-9]+)/?$ /tweets/index.php?client=$1&page=$2 last;
rewrite ^/tweets/page/([0-9]+)/?$ /tweets/index.php?page=$1 last;
rewrite ^/tweets/favorites/?$ /tweets/index.php?favorites=1 last;
rewrite ^/tweets/favorites/page/([0-9]+)/?$ /tweets/index.php?favorites=1&page=$2 last;
rewrite ^/tweets/stats/?$ /tweets/index.php?method=stats last;
}
Clone repository
  • Advanced configuration installation
  • Home