Can anyone please help get htaccess working
Posted: 01. July 2013 23:41
Hi
Just installed version 1.7.7 on Windows XP, as the older version ceased to function. Good to be running to a degree but a problem with htaccess. Have tested with simple redirects etc. and definitely not functioning.
Did search and read what I could find on the forum. Have checked that in httpd.conf the following are uncommented:
LoadModule env_module modules/mod_env.so
LoadModule rewrite_module modules/mod_rewrite.so
The sites are in folders on the desktop, running via httpd-vhosts.conf with entries in the form:
<VirtualHost *>
DocumentRoot "C:\Documents and Settings\HP_Administrator\Desktop\sampledomain"
ServerName www.sampledomain.com
<Directory "C:\Documents and Settings\HP_Administrator\Desktop\sampledomain">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Possibly not relevant but the type of htaccess entry we are trying to get working is:
<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv gp_rewrite t765r63w
</IfModule>
RewriteEngine On
RewriteBase "/"
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
<IfModule mod_cache.c>
RewriteRule /?(.*) "/index.php/$1" [L]
</IfModule>
<IfModule !mod_cache.c>
RewriteRule . "/index.php" [L]
</IfModule>
</IfModule>
With this not functioning, image paths, urls etc are naturally wrong e.g. now sampledomain/index.php/page instead of sampledomain/page
Main thing is to know what I am doing wrong, or have missed. Any help is much appreciated.
Just installed version 1.7.7 on Windows XP, as the older version ceased to function. Good to be running to a degree but a problem with htaccess. Have tested with simple redirects etc. and definitely not functioning.
Did search and read what I could find on the forum. Have checked that in httpd.conf the following are uncommented:
LoadModule env_module modules/mod_env.so
LoadModule rewrite_module modules/mod_rewrite.so
The sites are in folders on the desktop, running via httpd-vhosts.conf with entries in the form:
<VirtualHost *>
DocumentRoot "C:\Documents and Settings\HP_Administrator\Desktop\sampledomain"
ServerName www.sampledomain.com
<Directory "C:\Documents and Settings\HP_Administrator\Desktop\sampledomain">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Possibly not relevant but the type of htaccess entry we are trying to get working is:
<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv gp_rewrite t765r63w
</IfModule>
RewriteEngine On
RewriteBase "/"
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
<IfModule mod_cache.c>
RewriteRule /?(.*) "/index.php/$1" [L]
</IfModule>
<IfModule !mod_cache.c>
RewriteRule . "/index.php" [L]
</IfModule>
</IfModule>
With this not functioning, image paths, urls etc are naturally wrong e.g. now sampledomain/index.php/page instead of sampledomain/page
Main thing is to know what I am doing wrong, or have missed. Any help is much appreciated.