Welcome Guest, Not a member yet? Register   Sign In
How to keep url_suffix from automatically being appended to links?
#2

[eluser]Colin Williams[/eluser]
Hrm... the fact that anchor() appends this is probably, generally, a good thing. Since the ".php" extension existence is the requirement of an outside service, it might make sense to re-engineer your setup to only react to that one condition, probably through mod_rewrite rules. Changing this line in your .htaccess or httpd.conf from

Code:
RewriteRule ^(.*)$ /index.php/$1 [L]

to

Code:
RewriteRule ^(.*)(\.php)?$ /index.php/$1 [L]

might do the trick, but you probably have to go to greater lengths to get it to work, and might want to specifically single-out the requesting server that requires the ".php" extension. Basically you're saying, "route anything like xxxxx.php to index.php/xxxxx." Don't know if this would mess up the valid index.php requests or not...


Messages In This Thread
How to keep url_suffix from automatically being appended to links? - by El Forum - 09-08-2008, 03:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB