Forum Moderators: phranque
i try to get for the first time a mod_rewite working.
I read several posts and manuals but no way.
This i did al ready:
Turn on the RewriteLog level 4:
83.149.69.18 - - [18/Feb/2008:08:36:32 +0100] [/sid#954b5a8][rid#9cdddc0/initial] (2) init rewrite engine with requested uri /
83.149.69.18 - - [18/Feb/2008:08:36:32 +0100] [/sid#954b5a8][rid#9cdddc0/initial] (1) pass through /
83.149.69.18 - - [18/Feb/2008:08:36:32 +0100] [/sid#954b5a8][rid#9ce6ac0/subreq] (2) init rewrite engine with requested uri /index.php
83.149.69.18 - - [18/Feb/2008:08:36:32 +0100] [/sid#954b5a8][rid#9ce6ac0/subreq] (1) pass through /index.php
Create a dir: /var/www/vhosts/domain.com/httpdocs/manager/sites/exapmledomain/index.php
Users enter the dir mananger. In here is a php file how get a url variable, and is create a url, domain_root/manager/4f7k64pqi0t989jnarfjegus05/exapmledomain/index.php
So, 4f7k64pqi0t989jnarfjegus05 must be unseen created to /sites/
In site a pleaced a .htaccess file first whit ;
[codes]
RewriteRule ^+/manager/+/\?(+)$ [bla.blabla.nl...] [L]
[/codes]
and now
[codes]
RewriteCond %{REQUEST_URI}(.*) ^manager/site$
RewriteRule ^(.*)$ site/exapmledomain/index\.php [L]
[/codes]
The only thing a get al the time is a 404 page. In it i put a document.write(location.href) and it says the normal requested url (https://domain.com/manager/site/4f7k64pqi0t989jnarfjegus05/exapmledomain/index.php). Al the dir has a index.php in it for testing.
Please help and sorry for the bad english.
Hans