Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.html in url
#4
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!
Reply


Messages In This Thread
.html in url - by kotos - 2010-02-26, 18:58:53
.html in url - by kirillaristov - 2010-02-27, 00:54:18
.html in url - by kirillaristov - 2010-02-27, 02:57:04
.html in url - by Zegnåt - 2010-02-28, 02:59:24



Users browsing this thread: 1 Guest(s)