• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Mod_Rewrite

K

kkellish

Guest
How to I enable Mod_Rewrite on my plesk 8.0? I am trying to install a script and don't know if my mod_rewrite was on. Please help me
 
Check your httpd.conf file to see if mod_rewrite is available, on a RH type distro type this at the SSH shell prompt:
Code:
grep 'rewrite' /etc/httpd/conf/httpd.conf
and you should see something like:
Code:
LoadModule rewrite_module     modules/mod_rewrite.so
 
mod_rewrite is installed by default. Make sure to set 'RewriteEngine on' before your RewriteCond and RewriteRule statements.
 
I have seen a lot of discussion regarding mod_rewrite..

I am new to linux as I have previously only hosted on windows.

Is it posted somewhere, a simple how-to use mod_rewrite with plesk?

I am looking for simple things like:

Code:
domain.com/content/name = domain.com/content.php?content=name

pretty simple, right?

Any help would be greatly appreciated.

I used the above-mentioned grep command and got the posted result. That leads me to believe it is working fine.
 
I assume that the rules should go into /var/www/vhosts/DOMAINNAME/conf ?

do i need to restart apache after changes?
 
If you put them in conf/vhost.conf you need to reload apache (and run websrvmng if you've just created vhost.conf of course). You can also just put your mod_rewrite rules in a .htaccess file. No need to reload anything then, although supposedly by using .htaccess you sacrifice some speed as apache needs to read .htaccess for each request.
 
so, when I use a .htaccess file, the syntax is the same?
 
Thanks. This is my first time on linux/apache. I have hosted on IIS for about 5 years and finally made the switch.

I really appreciate the information you have provided. I definitely have enough to get going.

Thanks!!!:D
 
Back
Top