Loading...
Helix SwarmHelix Swarm
Loading...

.htaccess

  • //
  • guest/
  • perforce_software/
  • p4ruby/
  • p15-1/
  • docbook/
  • assets/
  • publicsite/
  • .htaccess #1
  • View
  • Commits
  • Open Download .zip Download (1 KB)
  1. DirectoryIndex index.html
  2.  
  3. # Handles rewriting old HTML filenames for the P4SAG.
  4. <IfModule mod_rewrite.c>
  5. RewriteEngine on
  6.  
  7. # The following looks way too complicated to be necessary, but in fact it is.
  8. # It is not straightforward to redirect to renamed files that used to exist
  9. # in a subdirectory AND be agnostic to where these files live in the document
  10. # root.
  11. RewriteBase /
  12.  
  13. RewriteCond %{REQUEST_FILENAME} !-f
  14. RewriteCond $1#%{REQUEST_URI} ([^#]*)#(.*)\1$
  15. RewriteRule ^(00_preface.html)$ %2index.html [QSA,R,L]
  16.  
  17. RewriteCond %{REQUEST_FILENAME} !-f
  18. RewriteCond $1#%{REQUEST_URI} ([^#]*)#(.*)\1$
  19. RewriteRule ^(01_ruby.html)$ %2chapter.ruby.html [QSA,R,L]
  20.  
  21. RewriteCond %{REQUEST_FILENAME} !-f
  22. RewriteCond $1#%{REQUEST_URI} ([^#]*)#(.*)\1$
  23. RewriteRule ^(02_perl.html)$ %2chapter.perl.html [QSA,R,L]
  24.  
  25. RewriteCond %{REQUEST_FILENAME} !-f
  26. RewriteCond $1#%{REQUEST_URI} ([^#]*)#(.*)\1$
  27. RewriteRule ^(03_python.html)$ %2chapter.python.html [QSA,R,L]
  28.  
  29. RewriteCond %{REQUEST_FILENAME} !-f
  30. RewriteCond $1#%{REQUEST_URI} ([^#]*)#(.*)\1$
  31. RewriteRule ^(04_php.html)$ %2chapter.php.html [QSA,R,L]
  32. </IfModule>
# Change User Description Committed
#1 16214 perforce_software Move the p15-1 line. 10 years ago
//guest/perforce_software/p4rub/p15-1/docbook/assets/publicsite/.htaccess
#1 16213 perforce_software Move files to proper depot path to view files correctly from project page. 10 years ago
//guest/perforce_software/p4ruby/p15.1/docbook/assets/publicsite/.htaccess
#1 14756 tjuricek p15.1 branch of p4ruby. 10 years ago
//guest/perforce_software/p4ruby/main/docbook/assets/publicsite/.htaccess
#1 14682 Git Fusion Git Fusion branch management

Imported from Git
 ghost-of-change-num: 960958
&nb
...sp;ghost-of-sha1: 005052ae424bd69f426f7209e741ca1c8c3253c7
 ghost-precedes-sha1: ad052c71a568ef12165e143a6866ad9ceffbb4a1
 parent-branch: None@960958
 push-state: incomplete
«
11 years ago