ispCP - Board - Support
.htaccess question - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: .htaccess question (/thread-6384.html)



.htaccess question - gilbert - 04-13-2009 03:08 AM

Hi,

One of the sites that we host are asking if .htacces containing should work.

.htaccess
RewriteEngine on

RewriteRule /home/([a-z]+) /home/index.php?id=$1


I don't have any experience with this.

http://www.xxxxxxxx.com/home/elephant/
gets redirected to http://www.xxxxxxxx.com/home/index.php?id=elephant


It doesn't seem to work.

Is there anything in a standard ispcp setup that would prevent this from working?

Thanks in advance,

Gilbert.


RE: .htaccess question - rbtux - 04-13-2009 04:06 AM

yep

you need to adjust the allowoveride parameter in the users vhost config...


RE: .htaccess question - gilbert - 04-13-2009 10:42 AM

(04-13-2009 04:06 AM)rbtux Wrote:  yep

you need to adjust the allowoveride parameter in the users vhost config...

In my /etc/apache2/sites-enabled/ispcp.conf

doesn't it already have AllowOverride All?


<Directory /var/www/virtual/xxxxxx.com/htdocs>
# httpd dmn entry PHP support BEGIN.
# httpd dmn entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>


RE: .htaccess question - rbtux - 04-13-2009 06:50 PM

yeah well it was late... sorry it might be off only in the master...

have you globally enabled mod_rewrite (en2mod)?