apache - Rewrite with relative path -


i going nuts on reqrite rule on local machine...

i enabled rewrite log , single page load on url should rewrite:

ip - - [21/may/2013:08:13:18 +0200] [scxx/sid#7f6580ce32b8][rid#7f65810069e0/initial] (2) init rewrite engine requested uri /catdev/sc/eprocure/ajax/articlesearch/searchengine/getinitialdata ip - - [21/may/2013:08:13:18 +0200] [scxx/sid#7f6580ce32b8][rid#7f65810069e0/initial] (3) applying pattern '^/catdev/sc/eprocure/ajax/(.+)/(\w+)/(\w+?)$' uri '/catdev/sc/eprocure/ajax/articlesearch/searcheng$ ip - - [21/may/2013:08:13:18 +0200] [scxx/sid#7f6580ce32b8][rid#7f65810069e0/initial] (2) rewrite '/catdev/sc/eprocure/ajax/articlesearch/searchengine/getinitialdata' -> '/catdev/sc/eprocure/ajax/handler.php?pa$ ip - - [21/may/2013:08:13:18 +0200] [scxx/sid#7f6580ce32b8][rid#7f65810069e0/initial] (3) split uri=/catdev/sc/eprocure/ajax/handler.php?path=articlesearch&class=searchengine&method=getinitialdata -> uri=/catde$ ip - - [21/may/2013:08:13:18 +0200] [scxx/sid#7f6580ce32b8][rid#7f65810069e0/initial] (2) local path result: /catdev/sc/eprocure/ajax/handler.php ip - - [21/may/2013:08:13:18 +0200] [scxx/sid#7f6580ce32b8][rid#7f65810069e0/initial] (1) go-ahead /catdev/sc/eprocure/ajax/handler.php [ok] 

the path gets found correctly, still dous not load page should. have no idea why!

the error log shows me this.

[tue may 21 08:13:18 2013] [error] [client xxx.xxx.xxx.xx] file not exist: /catdev/sc/eprocure 

now have theese rewrite rules apache config:

<virtualhost *:80>         serveradmin webmaster@xxx.at         servername xxx         documentroot /data1/www/somewherefarbeyond/ssl-htdocs          <directory /data1/www/somewherefarbeyond/ssl-htdocs/>                 options indexes followsymlinks multiviews                 allowoverride none                 order allow,deny                 allow         </directory>          errorlog /data1/www/somewherefarbeyond/logs/error.log          # possible values include: debug, info, notice, warn, error, crit,         # alert, emerg.         loglevel warn          customlog /data1/www/somewherefarbeyond/logs/access.log combined           rewriteengine on          rewriterule ^/catdev/sc/eprocure/ajax/(.+)/(\w+)/(\w+?)$      /catdev/sc/eprocure/ajax/handler.php?path=$1&class=$2&method=$3 [l]         rewritelog /data1/www/somewherefarbeyond/logs/accessrewrite.log         rewriteloglevel 9  </virtualhost> 

can somone shred light thing?

he url im trying xxx/catdev/sc/eprocure/ajax/articlesearch/searchengine/getinitialdata

note xxx hand owerwriten doman dev server , ips obscurified to.

god damn it.

iw debian "feature"

i work on debian distro, , there wierd reason when make rewrites in base config have specify whole directory path not relative path.

just make rewriten url directory location not url!

example is:

your www folder in

/motherofgod/wtf/www 

your www root set /motherofgod/wtf/www in apatche

your domain lols.com

so file lols.com/lol/wtf

which needs to on /motherofgod/wtf/www/some/crap/handler.php

ou have specify whole path not relative path www directory ~_~


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -