Skip to content

Instantly share code, notes, and snippets.

@katapad
Created May 31, 2013 13:38
Show Gist options
  • Save katapad/5685033 to your computer and use it in GitHub Desktop.
Save katapad/5685033 to your computer and use it in GitHub Desktop.
teaserとmainとspとpcを切り分けるhtaccess
<Files .htaccess>
order allow,deny
deny from all
</Files>
DirectoryIndex index.html
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/test4/teaser/.*$
RewriteRule ^(.*)$ /test4/teaser/$1 [P,L]
<Files .htaccess>
order allow,deny
deny from all
</Files>
DirectoryIndex index.html
RewriteEngine On
RewriteRule ^(sp/?|sp/index.html)$ /test4/main/A/sp/index.html [P,L]
RewriteRule ^(/|index.html)$ /test4/main/A/pc/index.html [P,L]
<Files .htaccess>
order allow,deny
deny from all
</Files>
DirectoryIndex index.html
RewriteEngine On
RewriteRule ^(/|index.html)$ /test4/teaser/A/index.html [P,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment