瀏覽代碼

added .htaccess file and changed page title.

Tomi Cvetic 4 年之前
父節點
當前提交
ba5e5b82ea
共有 3 個文件被更改,包括 12 次插入4 次删除
  1. 11 0
      frontend/public/.htaccess
  2. 1 1
      frontend/src/app/components/Meta.tsx
  3. 0 3
      frontend/src/app/components/Page.tsx

+ 11 - 0
frontend/public/.htaccess

@@ -0,0 +1,11 @@
+<IfModule mod_rewrite.c>
+
+  RewriteEngine On
+  RewriteBase /
+  RewriteRule ^index\.html$ - [L]
+  RewriteCond %{REQUEST_FILENAME} !-f
+  RewriteCond %{REQUEST_FILENAME} !-f
+  RewriteCond %{REQUEST_FILENAME} !-f
+  RewriteRule . /index.html [L]
+
+</IfModule>

+ 1 - 1
frontend/src/app/components/Meta.tsx

@@ -8,7 +8,7 @@ const Meta = () => (
     <link rel='stylesheet' type='text/css' href='/nprogress.css' />
     <link rel='stylesheet' type='text/css' href='/normalize.css' />
     <link rel='stylesheet' type='text/css' href='/video.css' />
-    <title>u-fit</title>
+    <title>u-fit HIIT</title>
   </Head>
 )
 

+ 0 - 3
frontend/src/app/components/Page.tsx

@@ -8,9 +8,6 @@ import GlobalStyle from '../../styles/global'
 const Page = (props: any) => (
   <>
     <Meta />
-    <Head>
-      <title>Home</title>
-    </Head>
 
     <Header />
     <main>{props.children}</main>