2010-02-28, 02:59:24
kirillaristov Wrote:Then edit .htaccess file in the root of your site:
Code:RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?([A-Za-z0-9-]+).html/?$ index.php?id=$1 [L]
I did not care to test it, but it doesn’t sound like it will work. The regular expression seems not to match child pages at all. Besides that I would recommend you remove the final /? before the $. If you want it to “fake†a normal HTML page it should never be followed by a slash.
kirillaristov Wrote:I recommend remove link to main page from menu when current page is main.The only reason you would do this is if you do not want to have any self-links. In which case it goes for all pages, not just the main page. So I wouldn’t put much thought in it or make an if-clause that tests for all.
My 2¢
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!