aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-10-11 21:42:09 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-10-11 21:42:09 +0000
commit59f9a6cbe48b706a4d84592c0d081ab0f46ebc15 (patch)
tree84f1bb4c6f9ae4987b5b291d5ebb33bc1c7696b3
parent883761bc13556f0b8446fa0dff907a0f47088e77 (diff)
downloadellinika-59f9a6cbe48b706a4d84592c0d081ab0f46ebc15.tar.gz
ellinika-59f9a6cbe48b706a4d84592c0d081ab0f46ebc15.tar.bz2
Generate .htaccess
git-svn-id: file:///home/puszcza/svnroot/ellinika/trunk@472 941c8c0f-9102-463b-b60b-cd22ce0e6858
-rw-r--r--.htaccess.in (renamed from .htaccess)6
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac1
3 files changed, 5 insertions, 4 deletions
diff --git a/.htaccess b/.htaccess.in
index a424156..15a841d 100644
--- a/.htaccess
+++ b/.htaccess.in
@@ -8,6 +8,6 @@ RewriteCond %{REQUEST_FILENAME} !.*\.png
RewriteRule .* /maint.html [L]
# --END MAINTENANCE RULES---
-RewriteRule (.+)/dict.html /cgi-bin/dict.cgi?LANG=$1 [L]
-RewriteRule (.+)/nea.html /cgi-bin/nea.cgi?LANG=$1 [L]
-RewriteRule (.+)/nea.rss /cgi-bin/nea.cgi?LANG=$1&rss=1 [L]
+RewriteRule (.+)/dict.html @SCRIPT_DIR@/dict.@SCRIPT_SUFFIX@?LANG=$1 [L]
+RewriteRule (.+)/nea.html @SCRIPT_DIR@/nea.@SCRIPT_SUFFIX@?LANG=$1 [L]
+RewriteRule (.+)/nea.rss @SCRIPT_DIR@/nea.@SCRIPT_SUFFIX@?LANG=$1&rss=1 [L]
diff --git a/Makefile.am b/Makefile.am
index 9c5e977..d47d567 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,7 +23,7 @@ SUBDIRS=cgi-bin elisp data ellinika scm xml po
htmldir = $(HTMLDIR)
html_DATA = style.css .htaccess index.scml disp.html disp.css
-EXTRA_DIST=.htaccess index.scml disp.html disp.css maint.html
+EXTRA_DIST=.htaccess.in index.scml disp.html disp.css maint.html
install-html:
top_srcdir=`cd $(top_srcdir);pwd`; \
diff --git a/configure.ac b/configure.ac
index deff51e..5dbd839 100644
--- a/configure.ac
+++ b/configure.ac
@@ -110,6 +110,7 @@ AC_SUBST(AUTOGENERATED,
";;;; This file is generated automatically. Please do not edit. -*- buffer-read-only: t -*- vi: set ro:")
AC_CONFIG_FILES(Makefile
+ .htaccess
cgi-bin/Makefile
elisp/Makefile
data/Makefile

Return to:

Send suggestions and report system problems to the System administrator.