php - .htaccess rewrite for SEF URLs that works at 1&1 but not other hosts -
i've been researching , trying can hands on strangeness persists.
i have understandably odd rewrite scenario php script image resizing , caching being called without .php extension create sef url, odd part i'm passing 'parameters' if subdirectory of script , in scenario rewrite fails, ie:
http://10.3.2.218/libraries/imageresize/images/portfolio/200/test.jpg
in above url, 'imageresize' in reality 'imageresize.php' , after captured script using $_server['request_uri'] , processed down image location , dimensions. output of script processed image needed content type etc.
the exact issue rewrite rules work under normal conditions , work (with above scenario) @ 1and1 client is, not on development centos webserver/vm or vps cpanel. seem anywhere 1and1 apache maybe assuming /imageresize/ directory , never testing see if script. rewrite rules follows.
options +followsymlinks rewriteengine on rewritecond %{request_uri} !(\.[^./]+)$ rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule (.*) $1.php [l]
i guess i'm either looking solution related server configuration or better rewrite rule or @ least explanation why works @ 1and1.
thanks help.
sounds multiviews in enabled on servers don't work.
change
options +followsymlinks
to
options +followsymlinks -multiviews
Comments
Post a Comment