| | #1 |
| Warrior Member Join Date: 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
Hello, I am working on SEF URLs, but since my knowledge of regex is far too short, I came up with a situation where I am not able to find a solution on my own. Code: RewriteCond %{REQUEST_URI} .([^/])*.html$ [NC]
RewriteRule ^(.*).html$ index.php?page=$1 [L,QSA] For example: mydomain.com/page.html would give $_GET['page'] = 'page' and mydomain.com/pa/ge.html would give $_GET['page'] = 'pa/ge'. Maybe someone would be able to edit my regex and explain what I am doing wrong. Thank you! |
| | |
| |
|
| Bookmarks |
| Tags |
| condition, htaccess, mod, rewrite |
| |