Current time: 11-28-2024, 12:02 AM Hello There, Guest! (LoginRegister)


Post Reply 
.htaccess question
Author Message
gilbert Offline
Junior Member
*

Posts: 45
Joined: May 2007
Reputation: 0
Post: #1
.htaccess question
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.
04-13-2009 03:08 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #2
RE: .htaccess question
yep

you need to adjust the allowoveride parameter in the users vhost config...
04-13-2009 04:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
gilbert Offline
Junior Member
*

Posts: 45
Joined: May 2007
Reputation: 0
Post: #3
RE: .htaccess question
(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>
04-13-2009 10:42 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #4
RE: .htaccess question
yeah well it was late... sorry it might be off only in the master...

have you globally enabled mod_rewrite (en2mod)?
04-13-2009 06:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)