• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

mod_rewrite query

T

Thratchen

Guest
HI
I'm trying to get mod_redirect work on my linux/FC3 but I'm having no luck.

Ive tried it on domains and subdomains with the same results.


For instance Ive checked the /etc/httpd/conf/httpd.conf

and found the loadmodule in the correct place

Code:
LoadModule rewrite_module modules/mod_rewrite.so

then I've checked that the /etc/httpd/modules/mod_rewrite.so exists.
(Ive also tried deleting mod_rewrite.so and restarting the webserver, just to see if it complains. Which it does :( )


After that Ive added the following to /home/httpd/vhosts/DOMAIN-NAME.com/conf/vhost.conf

Code:
<Directory /home/httpd/vhosts/DOMAIN-NAME.com/httpdocs/>
        RewriteEngine on
        RewriteBase /
        RewriteRule ^/player/(.*)/$ /player.php?ID=$1
</Directory>

then regenerated the config files by running

/usr/local/psa/admin/bin/websrvmng -a -r

after this i am expecting

http://DOMAIN-NAME.com/player/2/

to take me to
http://DOMAIN-NAME.com/player.php?ID=2


but it doesnt work and all I get is a 404.


can anyone help?
Are there any config options that would stop modrewrite working?
 
Back
Top