ispCP - Board - Support
Problems with rewrite mode after the first level - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: Problems with rewrite mode after the first level (/thread-13990.html)



Problems with rewrite mode after the first level - claussit - 05-17-2011 03:16 AM

Hello ,
(ISPCP 1.0.7 on Ubuntu 10.04 LTS)
I have a problem setting the apche . After the first level, rewrite mode is not working.
In settings / etc/apache2/sites-available/ispcp.conf rewrite mode looks like this:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^LWP::Simple
RewriteRule ^/.* http://%{REMOTE_ADDR}/ [L,E=nolog:1]
</IfModule>

Configuration for my domain is set AllowOverride All .
Php is OK .
I do not understand why the rewrite module does not work after the first level. Can anyone help me please?


RE: Problems with rewrite mode after the first level - ShadowJumper - 05-17-2011 05:08 AM

Do you have a ".htaccess" file in one of this folders?


RE: Problems with rewrite mode after the first level - claussit - 05-17-2011 05:28 AM

Hello ShadowJumper ,
Thanks for replay .
There is a file ".htaccess", and what is in / var / www / virtual / domain.*** / htdocs functioning normally . All that is in subfolder not working in rewrite mode .


RE: Problems with rewrite mode after the first level - ShadowJumper - 05-17-2011 05:47 AM

where is the file exactly, and what is the content of the file?


RE: Problems with rewrite mode after the first level - claussit - 05-17-2011 06:04 AM

(05-17-2011 05:47 AM)ShadowJumper Wrote:  where is the file exactly, and what is the content of the file?

/var/www/virtual/domain.com/htdocs/.htaccess

I replaced my domain name with domain.com . Some files have romanian names , but their name is not important

"
Options -Indexes

#php_flag display_errors off

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]

RewriteRule ^$ index.html
RewriteRule ^admin/ - [L,NC]
RewriteRule ^static/ - [L,NC]

RewriteRule contact.html contact.php [L,NC]
RewriteRule index.html index.php [L,NC]
RewriteRule login.html login.php [L,NC]
RewriteRule inregistrare.html inregistrare.php [L,NC]
RewriteRule plataonline/([0-9]+).html plataonline.php?id=$1 [L,NC]
....
"
Can be a problem with DNS? not working properly ? and rewrite mode setting does not work because the path is not well defined .


RE: Problems with rewrite mode after the first level - claussit - 05-18-2011 05:25 PM

Post closed from my point of view. I moved the site on another server.