DocC - ошибка 500 - невозможно загрузить http://localhost:8888/data/documentation/index.html.json
Я использую MAMP (перед его выпуском), чтобы попытаться разместить содержимое моей структуры PrintMyName.doccarchive на моем веб-сайте.
Насколько мне известно, я выполнил все шаги, описанные в документации:
Экспортировал архив документов
Добавил doccarchive в мою корневую папку
Создал и изменил шаблон .htaccess, чтобы он соответствовал имени моего doccarchive
# Enable custom routing.
RewriteEngine On
# Route documentation and tutorial pages.
RewriteRule ^(documentation|tutorials)\/.*$ PrintMyName.doccarchive/index.html [L]
# Route files and data for the documentation archive.
#
# If the file path doesn't exist in the website's root ...
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# ... route the request to that file path with the documentation archive.
RewriteRule .* PrintMyName.doccarchive/$0 [L]
добавил код в мой основной index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>HELLO THERE!</h1>
<button onclick="location.href = '/documentation/index.html'">PrintMyName Documentation!!!</button>
</body>
</html>
Проблема возникает, когда я нажимаю кнопку. Я вижу, что htaccess работает, но при загрузке содержимого для моего doccarchive я вижу следующую ошибку:
Я действительно представляю, как что-то идет не так при попытке сопоставить / переписать (извините за мои плохие знания о терминах сервера), поскольку index.html.json явно не существует:
Карта (еще раз извините) пытается заменить вхождения PrintMyName на index.html ???
Есть предположения?