views:

288

answers:

3

I have the file called call_center_interface.php

Options +FollowSymLinks
RewriteEngine on
RewriteRule call_center_interface-act-(.*)\.htm$ call_center_interface.php?act=$1

i use the above url rewrite code but it is not working in ubuntu

+1  A: 

Have you enabled the mod_rewrite module in apache? Run it as root or use sudo:

sudo a2enmod rewrite

There is any other rewrite rule that is working?

Luiz Damim
Run it as root, or use sudo: `$ sudo a2enmod rewrite`
Donny Kurnia
Hi Donny, to make things more clear I edited my answer with your complementary info. Thanks.
Luiz Damim
A: 

Hi, I would also recommend to place your code between

<IfModule mod_rewrite.c>
...
</IfModule>

otherwise on some servers you'll run into a 500-Server-Error-Page.

If you add a RewriteBase statement with the directory or subdirectory below your document root, you're also more safe (say: /var/www/foo/scripts/call_... and /var/www/foo is your document root, add 'RewriteBase "/scripts/"'.

initall
A: 

Thanks for your support

karuppasamy