Reputation: 4211
when i am includeing htaccess file in my project, it gives an error.
i am using php and mysql.
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
Rewritebase /xyz/
# For UI Start
### For Index page
RewriteRule ^index$ index.php [NC,L]
RewriteRule ^index/$ index.php [NC,L]
This is my htaccess file code.
i am working with WAMP.
it gives an error Internal Server Error.
Thanks
Upvotes: 0
Views: 89
Reputation: 449525
The best thing to do would be to look into the error log file, but I assume you have no access to that.
First of all then, make sure mod_rewrite
is installed on the server.
Try putting only
RewriteEngine On
into the htaccess file. If that fails with a 500, mod_rewrite
is turned off and you need to talk to your provider.
Upvotes: 3
Reputation: 10294
You need not include htaccess files. just put it in proper place. I am sure this is your first time.
Upvotes: 0