php - Mod_Rewrite Apache Remove 2 Files -
i making social network companies intranet. have been able utilize htaccess remove index.php file url, however, there "profile.php" file allow user pull users profile. there way use .htaccess , mod_rewrite remove both index.php, , profile.php?
this current htaccess file:
rewriteengine on rewritecond $1 !^(index\.php|css|images|robots\.txt) rewriterule ^(.*)$ /index.php/$1 [l]
again, want able remove profile.php index.php.
edit: running on cpanel's latest version on centos server.
since no 1 answered on week, did roundabout way. redirected 404 requests 1 profile.php excluding existing files , directories.
i removed profile.php, since index.php listed directoryindex.
upon completion, profile.php located profile , displayed necessary information.
Comments
Post a Comment