Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Now we do not use id=123 type shorturls, instead we use 4 character long alpha-numeric shorturls, for example 1aG6
- Loading branch information
1 parent
7c7814d
commit 942ac01
Showing
3 changed files
with
87 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
RewriteEngine On | ||
RewriteBase /shorturl | ||
RewriteRule ^([a-z0-9]+)$ index.php?id=$1 | ||
RewriteRule ^([A-Za-z0-9]+)$ index.php?id=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters