From: Jason Woofenden Date: Mon, 8 Dec 2008 19:37:11 +0000 (-0500) Subject: Switched to clean urls (no .html at the end) X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=5ee58fc7dd8f44e53075e6898f89409c980ad34d;p=wfpl.git Switched to clean urls (no .html at the end) --- diff --git a/metaform/htaccess b/metaform/htaccess index 1e7df36..4073890 100644 --- a/metaform/htaccess +++ b/metaform/htaccess @@ -1,4 +1,6 @@ +php_flag register_globals off php_flag magic_quotes_gpc off +Options -MultiViews +AddDefaultCharset UTF-8 RewriteEngine on -RewriteRule ^$ /~form~/run.php -RewriteRule ^[^/]*\.html$ /~form~/run.php +RewriteRule ^[^/.]*$ /~form~/run.php diff --git a/metaform/template.html b/metaform/template.html index 08a764a..8e6eaa7 100644 --- a/metaform/template.html +++ b/metaform/template.html @@ -56,7 +56,7 @@
~caption.html~:
~~~name~.htmlbr~~
-

Edit

+

Edit

@@ -64,7 +64,7 @@

Add a new entryEdit entry "~~~always_field~.html~~"~form_name~ entry form

-
+ @@ -75,10 +75,10 @@

~form_name~ Listing

-

[Add a new record]

+

[Add a new record]

~caption.html~: ~caption.html~: ~caption.html~: dd/mm/yy~caption.html~: ~caption.html~: ~caption.html~:
~caption.html~: ~caption.html~: ~caption.html~: ~caption.html~? ~caption.html~?
- +
~~~always_field~.html~~[delete this record]
~~~always_field~.html~~[delete this record]
@@ -86,7 +86,7 @@

No ~~field_plural.html~~ in database.

-

[Add a new record]

+

[Add a new record]

diff --git a/metaform/template.php b/metaform/template.php index 3c5e6cc..b591fbc 100644 --- a/metaform/template.php +++ b/metaform/template.php @@ -152,7 +152,7 @@ function _~form_name~_main() { db_delete('~form_name~', 'where id=%i', $delete_id); message('Entry deleted.'); - return './~form_name~.html'; + return './~form_name~'; } if(!$edit_id) {