URL rewrite

Hi,

need your help guys…

i have a site: mydomain.com
files are located in /home/dl/www.domain.com/cms/web

the main mydomain site is using symfony framework, thus the structure above.

and im trying to configure wordpress URL rewrite for mydomain.com/wp

the first guy who installed it, put the WP files in /home/dl/ftproot/www

when you browse the /home/dl/www.domain.com/cms/web directory it has wp folder which is just a symbolic link to /home/dl/ftproot/www

now the problem is the htaccess URL rewrite generated by Wordpress for Permalinks doesn’t work…

any idea? what should be the htaccess looks like?

any help will be greatly appreciated.

thank you!

current htaccess codes:


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule  . index.php [L]
</IfModule>

ds,

As you’ve discovered, the symlink is messing everything up! WHY did your guy park the WP files in another directory (outside the webspace)? WHY didn’t you move it back to your webspace and avoid the headaches he caused?

As for your mod_rewrite code, that’s WP’s standard fare: CHECK FOR mod_rewrite THEN check for file, directory or symbolic link (it “treats the TestString as a pathname and tests whether or not it exists, and is a symbolic link”) then redirect to their handler page. With that, I have to add that any webmaster would KNOW whether mod_rewrite is enabled or not and would REMOVE the mod_rewrite check which is otherwise made for EVERY FILE REQUEST.

Regards,

DK