Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
22d239fa
Commit
22d239fa
authored
Feb 20, 2014
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put back rewrite rules.
parent
8fe5da7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
www/aptui/.htaccess
www/aptui/.htaccess
+22
-0
No files found.
www/aptui/.htaccess
View file @
22d239fa
...
...
@@ -15,3 +15,25 @@ RewriteRule ^/p/([^/]+)/([^/]+)/?$ /instantiate.php?project=$1&profile=$2 [R=301
RewriteRule
^/p/([^/]+)/([^/]+)/([\d]+)/?$ /instantiate.php?project=$1&profile=$2&version=$3 [R=301,L]
RewriteRule
^/p/([^/]+)/? /instantiate.php?profile=$1 [R=301,L]
# Change urlpath.php to urlpath
## Only perform this rule if we're on the expected domain
#RewriteCond %{HTTP_HOST} ^www\.aptlab\.net$ [NC]
## Don't perform this rule if we've already been redirected internally
#RewriteCond %{QUERY_STRING} !internal=1 [NC]
## Redirect the user externally to the non PHP URL
#RewriteRule ^(.*)\.php$ $1 [L,R=302]
# if the user requests /something we need to serve the php version if it exists
## Only perform this rule if we're on the expected domain
#RewriteCond %{HTTP_HOST} ^www\.aptlab\.net$ [NC]
## Perform this rule only if a file with this name does not exist
#RewriteCond %{REQUEST_FILENAME} !-f
## Perform this rule if the requested file doesn't end with '.php'
#RewriteCond %{REQUEST_FILENAME} !\.php$ [NC]
## Only perform this rule if we're not requesting the index page
#RewriteCond %{REQUEST_URI} !^/$
## Finally, rewrite the URL internally, passing through the user's query string
## using the [qsa] flag along with an 'internal=1' identifier so that our first
## RewriteRule knows we've already redirected once.
#RewriteRule ^(.*)$ $1.php?internal=1 [L,QSA]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment