forked from autonomic-cooperative/cotech-website
.htaccess file to serve /example.html as /example
This commit is contained in:
parent
9d882bc4a3
commit
a24a6123cb
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
layout: none
|
||||
permalink: .htaccess
|
||||
---
|
||||
# Serve requests for /example using the files at /example.html
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
||||
RewriteRule ^(.*)$ $1.html
|
||||
|
||||
# Redirect requests for /example.html to /example
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
||||
RewriteCond %{REQUEST_URI} ^(.+)\.html$
|
||||
RewriteRule (.*)\.html$ /$1 [R=301,L]
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
layout: none
|
||||
permalink: .htaccess
|
||||
---
|
||||
# Serve requests for /example using the files at /example.html
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
||||
RewriteRule ^(.*)$ $1.html
|
||||
|
||||
# Redirect requests for /example.html to /example
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
||||
RewriteCond %{REQUEST_URI} ^(.+)\.html$
|
||||
RewriteRule (.*)\.html$ /$1 [R=301,L]
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
layout: none
|
||||
permalink: .htaccess
|
||||
---
|
||||
# Serve requests for /example using the files at /example.html
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
||||
RewriteRule ^(.*)$ $1.html
|
||||
|
||||
# Redirect requests for /example.html to /example
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
||||
RewriteCond %{REQUEST_URI} ^(.+)\.html$
|
||||
RewriteRule (.*)\.html$ /$1 [R=301,L]
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
layout: none
|
||||
permalink: .htaccess
|
||||
---
|
||||
# Serve requests for /example using the files at /example.html
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
||||
RewriteRule ^(.*)$ $1.html
|
||||
|
||||
# Redirect requests for /example.html to /example
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME}\.html -f
|
||||
RewriteCond %{REQUEST_URI} ^(.+)\.html$
|
||||
RewriteRule (.*)\.html$ /$1 [R=301,L]
|
||||
|
Loading…
Reference in New Issue