Problem I am using PHP to build a REST API. I want to receive requests from the URL in the […]
Tag: .htaccess
All-purposes AJAX handler made with PHP and .htaccess that speaks JSON
Problem In a project I’ve started, I decided to implement some new code to handle AJAX requests. The requirements are […]
Can my router code be improved?
Problem I have created a nice url structure for my site. In my .htaccess I have: FallBackResource /index.php And in […]
htaccess with compression, caching, and rewrite rules for SEO
Problem I have the following htaccess and I want it to be the perfect htaccess for my website so that […]
Rewriting domain only if not on local dev enviroment and forcing www with Mod Rewrite
Problem I’m trying to write some mod rewrite code to redirect pages on a site to always use www and […]
Faults using mod_rewrite
Problem I never really bothered using mod_rewrite to achieve SEO friendly names but I’ve always admired from a distance because […]
Basic settings, custom error page, dynamic versioning, rewrite rules
Problem Any suggestion is more than welcome! I had to do a few tricks in rewrite rules (checks on ENV:REDIRECT_STATUS) […]
Prettifying URLs for a PHP-based club website
Problem I have a website for my car enthusiast club (“example.org”) whose content can be divided into three main sections: […]
Load other files (from outside public_html) under index.php
Problem I wanted to load every page under index.php with a simple index.php?do=login For example when the link index.php?do=login or […]
MVC router class
Problem Below is what I have come up with for a router/dispatcher system for my personal framework I am working […]
- 1
- 2