Current time: 11-30-2024, 08:38 PM Hello There, Guest! (LoginRegister)


Post Reply 
Problems with rewrite mode after the first level
Author Message
claussit Offline
Junior Member
*

Posts: 12
Joined: Nov 2010
Reputation: 0
Post: #1
Problems with rewrite mode after the first level
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?
05-17-2011 03:16 AM
Find all posts by this user Quote this message in a reply
ShadowJumper Offline
Member
***

Posts: 287
Joined: Sep 2008
Reputation: 2
Post: #2
RE: Problems with rewrite mode after the first level
Do you have a ".htaccess" file in one of this folders?
05-17-2011 05:08 AM
Find all posts by this user Quote this message in a reply
claussit Offline
Junior Member
*

Posts: 12
Joined: Nov 2010
Reputation: 0
Post: #3
RE: Problems with rewrite mode after the first level
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 .
05-17-2011 05:28 AM
Find all posts by this user Quote this message in a reply
ShadowJumper Offline
Member
***

Posts: 287
Joined: Sep 2008
Reputation: 2
Post: #4
RE: Problems with rewrite mode after the first level
where is the file exactly, and what is the content of the file?
05-17-2011 05:47 AM
Find all posts by this user Quote this message in a reply
claussit Offline
Junior Member
*

Posts: 12
Joined: Nov 2010
Reputation: 0
Post: #5
RE: Problems with rewrite mode after the first level
(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 .
05-17-2011 06:04 AM
Find all posts by this user Quote this message in a reply
claussit Offline
Junior Member
*

Posts: 12
Joined: Nov 2010
Reputation: 0
Post: #6
RE: Problems with rewrite mode after the first level
Post closed from my point of view. I moved the site on another server.
05-18-2011 05:25 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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