Skip to content

Instantly share code, notes, and snippets.

@yu-tang
Created August 14, 2011 17:39
Show Gist options
  • Save yu-tang/1145107 to your computer and use it in GitHub Desktop.
Save yu-tang/1145107 to your computer and use it in GitHub Desktop.
Vanilla のプリティ URL をサブディレクトリで有効にする手順
1. conf/config.php
$Configuration['Garden']['RewriteUrls'] = FALSE;
$Configuration['Garden']['RewriteUrls'] = TRUE;
2. .htaccess
こんな感じになってるところを、
# RewriteEngine On
# Certain hosts may require the following line.
# If vanilla is in a subfolder then you need to specify it after the /.
# (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
RewriteBase /
こんな感じに直す。
RewriteEngine On
# Certain hosts may require the following line.
# If vanilla is in a subfolder then you need to specify it after the /.
# (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
RewriteBase /~yu-tang/vanilla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment