From 1e3e7c6cf9229a7df98ab379d76e0fb5c8b2e95b Mon Sep 17 00:00:00 2001 From: Gnanakeethan Balasubramaniam Date: Sun, 7 Aug 2016 06:57:23 +0530 Subject: [PATCH] Create .htaccess Create HTAccess with proper configuration. --- src/Modules/PostInput/.htaccess | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/Modules/PostInput/.htaccess diff --git a/src/Modules/PostInput/.htaccess b/src/Modules/PostInput/.htaccess new file mode 100644 index 00000000..122c4ad9 --- /dev/null +++ b/src/Modules/PostInput/.htaccess @@ -0,0 +1,8 @@ +RewriteEngine On +RewriteRule ^git/phpengine/ptbuild/$ /index.php?control=GitServer&action=serve&item=ptbuild +RewriteRule ^git/phpengine/ptbuild$ /index.php?control=GitServer&action=serve&item=ptbuild +RewriteRule ^git/(.*)/(.*)$ index.php?control=GitServer&action=serve&repo_path=$0 [NC] +#Rewrite for Git Clones +RewriteCond %{QUERY_STRING} ^(\w+)=(\w+)$ +RewriteRule ^(?:git|scm)/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ index.php?control=GitServer&action=serve&item=$1&user=$0&git_query=$2/$3?%1=%2 +