This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

I can't found .htacess file


avatar
testtest22 8
From: -
I can't found .htacess file

I've download and install Contentteller Community Edition v1.0.0 RC2,but I couldn't found .htacess file.

I've active the mod_rewrite module,but I don't know rewrite rules.

My web server is lighttpd,if I know .htacess content,I could write it into lighttpd.conf.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: I can't found .htacess file
avatar
OP 8
From: -
rewrite rules for lighttpd:

url.rewrite = (
"^/(.+).php(.*)" => "/$1.php$2",
"^/(cadmin|jscripts|images|sitemap)/(.*)$" => "/$1/$2",
"^/(.+)$"=>"/contentteller.php"
)


I've test it in my server
1 Re: I can't found .htacess file
avatar
OP 8
From: -
This is the content of .htaccess:

<Files contentteller>

ForceType application/x-httpd-php
</Files>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^contentteller|contentteller/|contentteller/(.+)$ contentteller.php [L,QSA]

# Uncomment the following RewriteCond/RewriteRule lines if you are using the mod_rewrite SEO option
# You may need to adjust the third RewriteCond line to exclude additional directories
# Note: Using the mod_rewrite option is only recommended for experienced users
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !^(cadmin|jscripts|images|sitemap)/
#RewriteRule ^(.+)$ contentteller.php [L,QSA]
</IfModule>


You are looking for the following rules:

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(cadmin|jscripts|images|sitemap)/
RewriteRule ^(.+)$ contentteller.php [L,QSA]


Basically, this will ignore the cadmin, jscripts, images, and sitemap directories and send all other inquires to contentteller.php


Thank you
I'll try it
1 Re: I can't found .htacess file
avatar
Editor
0
From: -
This is the content of .htaccess:

<Files contentteller>

ForceType application/x-httpd-php
</Files>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^contentteller|contentteller/|contentteller/(.+)$ contentteller.php [L,QSA]

# Uncomment the following RewriteCond/RewriteRule lines if you are using the mod_rewrite SEO option
# You may need to adjust the third RewriteCond line to exclude additional directories
# Note: Using the mod_rewrite option is only recommended for experienced users
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !^(cadmin|jscripts|images|sitemap)/
#RewriteRule ^(.+)$ contentteller.php [L,QSA]
</IfModule>


You are looking for the following rules:

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(cadmin|jscripts|images|sitemap)/
RewriteRule ^(.+)$ contentteller.php [L,QSA]


Basically, this will ignore the cadmin, jscripts, images, and sitemap directories and send all other inquires to contentteller.php

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.