![]() |
Easy htaccess condition
Hello, I am total begginer here. I would be grateful if you could help me.
I have this rewrite condition + rewrite. RewriteCond %{REQUEST_URI} ^([^/]*).html$ [NC] RewriteRule ^(.*).html$ index.php?page=$1 [L,QSA] When i test it, i get page not found. Online regex tester, matches the result without no error. The htaccess file is one level deeper than home dir: the address would be http://www.mydomain.com/regex_directory/ Thank you. |
I did a modification to regex
Code:
RewriteCond %{REQUEST_URI} .([^/])*.html$ [NC]But as well it matches and mydomain.com/directory/inde/x.html $_GET variable page than is shown as inde/x? What is wrong with my regex? |
| All times are GMT +1. The time now is 02:54 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.