Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite not working

Can't get it working

         

hmobron

7:35 am on Feb 19, 2008 (gmt 0)

10+ Year Member



Hello all,

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

ocscott

1:11 pm on Feb 19, 2008 (gmt 0)

10+ Year Member



I'm afraid I don't understand what you meant in this thread.

What is the exact issue you are facing?

hmobron

2:08 pm on Feb 19, 2008 (gmt 0)

10+ Year Member



Hello ocscott,

Simple make this:
domain_root/manager/4f7k64pqi0t989jnarfjegus05/exapmledomain/index.php
into this whit mod_rewrite:
domain_root/manager/sites/exapmledomain/index.php