1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【備忘録】AWS LightsailのRedmineで検索エンジンに引っかからないようにする。

Posted at

はじめに

Redmineを環境構築した際、関係者以外には知られたくないもの。デフォルト設定の場合、検索エンジンに引っかかるため、検索エンジンから除外する設定を実施する。

cd /opt/bitnami/redmine/app/views/layouts

bitnami@ip-172-26-8-75:/opt/bitnami/redmine/app/views/layouts$ ls
admin.html.erb  base.html.erb  _file.html.erb  mailer.html.erb  mailer.text.erb

base.html.erbを変更する必要あり!!

変更箇所
<!DOCTYPE html>
<html lang="<%= current_language %>">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title><%= html_title %></title>
<meta name="robots" content="noindex,nofollow">  ←1行追加する。
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<%= Redmine::Info.app_name %>" />
<meta name="keywords" content="issue,bug,tracker" />
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?