10BC0 Fixed directory redirection · phanan/htaccess@c77fcab · GitHub
[go: up one dir, main page]

Skip to content

Commit c77fcab

Browse files
author
An Phan
committed
Fixed directory redirection
1 parent 0d0aaf0 commit c77fcab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Redirect 301 /oldpage2.html http://www.example.com/folder/
129129
### Alias a Single Directory
130130
``` apacheconf
131131
RewriteEngine On
132-
RewriteRule ^source-directory/(.*) target-directory/$1
132+
RewriteRule ^source-directory/(.*) /target-directory/$1 [R=301,L]
133133
```
134134

135135
### Alias Paths To Script

0 commit comments

Comments
 (0)
0