hi,
When i have DirectoryIndex /serendipity/index.php in .htaccess, and when i open http://localhost/serendipity in IE all the entries are displayed in frontpage(similar to view blog) but when i change DirectoryIndex /serendipity in .htaccess no entries are shown.
Actually i too want the same thing to happen, i.e when http://localhost/serendipity is loaded in IE.
how is DirectoryIndex value set in .htaccess file
DirectoryIndex in .htaccess file
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: DirectoryIndex in .htaccess file
Hi!
Why would you want to chagne DirectoryIndex? If you want to tamper with it, you should know that DirectoryIndex must be a filename, not a directory.
Look up the Apache Webserver documentation for more infos on that directive
Best regards,
Garvin
Why would you want to chagne DirectoryIndex? If you want to tamper with it, you should know that DirectoryIndex must be a filename, not a directory.
Look up the Apache Webserver documentation for more infos on that directive
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
What will happen when we open http://localhost/serendipity in IE? will it show all the entries in the blog? or will it show no entries to print?
Actually my requirement is that when we load the above url in IE no entries must be shown because still no user is logged in.
please advise.
thanks.
Actually my requirement is that when we load the above url in IE no entries must be shown because still no user is logged in.
please advise.
thanks.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
It is not dependant on any Browser, all browsers will behave the same because its a server issue.
If a browser just requests "serendipity" then the webserver is the one that will look at its configuration and see which file to deliver. Usually, a "DirectoryIndex index.htm index.php index.html" etc. structure is configured in Apache, so the webserver will check in that order which file to deliver. If a .htaccess is used for that directive, we specifically isntruct the webserver to always use "index.php".
Please read more at the Apache Documentation Website.
Best regards,
Garvin
It is not dependant on any Browser, all browsers will behave the same because its a server issue.
If a browser just requests "serendipity" then the webserver is the one that will look at its configuration and see which file to deliver. Usually, a "DirectoryIndex index.htm index.php index.html" etc. structure is configured in Apache, so the webserver will check in that order which file to deliver. If a .htaccess is used for that directive, we specifically isntruct the webserver to always use "index.php".
Please read more at the Apache Documentation Website.
For no entries to show when you're not logged in you need to make all your entries assigned to be readable only by specific authorgroups (using the entryproperties plugin). This is not related to .htaccess at all!Actually my requirement is that when we load the above url in IE no entries must be shown because still no user is logged in.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
HI garvin,
Thanks, i got it i was not mentioning about browser.
My requirement was different it was regarding displaying(or rather not displaying) of entries when that particular URL was typed. Because when that particular URL(http://localhost/serendipity) is typed no user is authenticated so no entries should be shown.
Anyway i have changed hytpd.conf file to point DirectoryIndex to error.php so that no entries are shown but " ACCESS DENIED" messsage is shown.
Is this correct way of working?
pls, advice.
thanks.
manoj
Thanks, i got it i was not mentioning about browser.
My requirement was different it was regarding displaying(or rather not displaying) of entries when that particular URL was typed. Because when that particular URL(http://localhost/serendipity) is typed no user is authenticated so no entries should be shown.
Anyway i have changed hytpd.conf file to point DirectoryIndex to error.php so that no entries are shown but " ACCESS DENIED" messsage is shown.
Is this correct way of working?
pls, advice.
thanks.
manoj
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
If you change directoryindex to error.php, s9y will not be able to use pretty URLs then, because directoryindex index.php is required for s9y to work with pretty URLs.
If you want users not to see entries on your blog without being logged in, go the entryproperties approach I mentioned. Set read/write permissions for categories and entries.
Your way is flawed, because if I would open "index.php" manually, I would already see all your entries. The only way to hide entries without being logged in is thus the way to make protected postings.
Best regards,
Garvin
If you change directoryindex to error.php, s9y will not be able to use pretty URLs then, because directoryindex index.php is required for s9y to work with pretty URLs.
If you want users not to see entries on your blog without being logged in, go the entryproperties approach I mentioned. Set read/write permissions for categories and entries.
Your way is flawed, because if I would open "index.php" manually, I would already see all your entries. The only way to hide entries without being logged in is thus the way to make protected postings.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
It's the plugin "Extended properties for entries", an event plugin that ships with serendipity.
If you install it and configure it to use ACLs you can just edit a category, click on the icon and select which authorgroups have read privileges for entries in that category. Plus you can also edit each entry and set specific users that a specific entry has read privileges for.
Regards,
Garvin
It's the plugin "Extended properties for entries", an event plugin that ships with serendipity.
If you install it and configure it to use ACLs you can just edit a category, click on the icon and select which authorgroups have read privileges for entries in that category. Plus you can also edit each entry and set specific users that a specific entry has read privileges for.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/