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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -