subfolder url get parameter not working in htaccess

Viewed 52

I have a website like www.abc.com/service/page.php?ids=social. I redirected site to www.abc.com/service/social. But i need to avoid this folder from url.Ex:www.abc.com/social.

Options +FollowSymLinks -MultiViews
 RewriteEngine on
 RewriteBase /service/
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^([a-zA-Z0-9]+|)/?$ page.php?ids=$1
2 Answers
Related