I am working on a PHP Application, Every thing works perfectly, The only problem is.
I have enabled SEO Friendly URL’s, Which re-writes the actual URL’s to virtual URL’s( i know you guys know it )
Ex : hxxp://www.website.com/index.php?page=about-us
To
hxxp://www.website.com/page/about-us/
What i want to achieve is If the SEO URL’s / Mod Rewrite is disabled, the user should be able to access the direct/actual URL’s.
In brief, If Mod-Rewrite is enabled, the web application should automatically use the SEO Friendly URL’s otherwise go with the default URL’s.
You would have to replace all occurrences of links with a function that checks if mod_rewrite is available, or more likely, a config value. It would then return the appropriate link.
getLink("?page=about-us")