.htaccess for Zend Debugger, Eclipse and Zend Framework

I want to debug my project in Zend Framework in Eclipse. Zend Debugger is already working, but I have a problem with Debug tool in Eclipse. It gives additional GET parameters and doesn't like the Zend project.

I tried looking for it and found this

I modified the .htaccess file but didn't work.

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*)?(start_debug=1.*)$ index.php?$2 [L]
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

      

Don't know if this is completely correct, because the Rewrite rules on the page have some flags for me uknown that my Apache is not working with.

the link that composes Eclipse is

http: // localhost /? debug_start_url = http: //localhost/&debug_session_id=1007&start_debug=1&debug_host=127.0.0.1&debug_no_cache=1229359621130&debug_port=10000&send_sess_end=1&horiginal_host =

0


source to share


3 answers


with actual Zend Framework 1.9.6 and Zend Debugger it works without much change



0


source


I am using the debugger successfully and my htaccess looks like

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
    RewriteCond %{REQUEST_FILENAME} (logs|library|application|config)
    RewriteRule ^(.*)$ index.php
</IfModule>

      



It basically says that the url does not lead to a directory that exists or to a file and then through my index.php (also blocks logs, libraries, applications and config folders because sometimes they are at the root of some from my projects due to server limitations). So far, I have not let me down to any project.

+1


source


0


source







All Articles