LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   URL rewriting/Centos (https://www.linuxquestions.org/questions/linux-newbie-8/url-rewriting-centos-758220/)

lonster 09-28-2009 09:24 AM

URL rewriting/Centos
 
Hello,

Im really new to linux. Im running an unmanaged VPS (no help from host)

Im trying to install a script that needs url rewriting enabled, how do I enable it?

Please keep in mind I am very new to this, but eager to learn.

Thanks in advance for any help.

bathory 09-28-2009 09:46 AM

Hi and welcome to LQ,

Assuming that yourVPS provider has enabled mod_rewrite and lets you use .htaccess, you have to create a file named .htaccess in your DocumentRoot directory containing "RewriteEngine on" followed by the Rewrite rules you want to use.

Regards


All times are GMT -5. The time now is 02:48 PM.