vineet
12-14-2008, 11:02 AM
hi
i have my all urls ending with .php
http://localhost/vineet/index.php
i have removed the extension with htacess
http://localhost/vineet/index/
this is htaccess
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^(.+)/$ $1.php
now if anyone writes index.php or contactus.php . means if anyone adds the .php extension to my url then i want to show him an error page or page not found page or redirect to index page.
but my pages should not get effected.
vineet
i have my all urls ending with .php
http://localhost/vineet/index.php
i have removed the extension with htacess
http://localhost/vineet/index/
this is htaccess
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^(.+)/$ $1.php
now if anyone writes index.php or contactus.php . means if anyone adds the .php extension to my url then i want to show him an error page or page not found page or redirect to index page.
but my pages should not get effected.
vineet