Wednesday, September 12, 2007

PHP read write role

sample .htaccess code

ErrorDocument 404 /test_rs_error_handling.php
#error handling added end

#options -Indexes
RewriteEngine on



RewriteRule ^SITE/a/exploreimage/view/([a-zA-Z0-9/_]*) index.php?option=com_image&cid=$1
RewriteRule ^SITE/a/exploreimage index.php?option=com_image

#ADDED FOR contact
RewriteRule ^SITE/a/explorecontact/view/([a-zA-Z0-9/_]*) index.php?option=com_contact&cid=$1
RewriteRule ^SITE/a/explorecontact index.php?option=com_contact

RewriteRule ^SITE/a/library/view/([a-zA-Z0-9/_]*) index.php?option=com_library&cid=$1
RewriteRule ^SITE/a/library index.php?option=com_library
RewriteRule ^SITE/a/imageview index.php?option=com_imageview

RewriteRule ^SITE/a/contact index.php?option=com_contact

1 comment:

shanmuga said...

For that we need to enable the the rewrite module in apache configuration file.