All Questions
Tagged with url-routing .htaccess
7 questions
4
votes
2
answers
2k
views
Load other files (from outside public_html) under index.php
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 <...
2
votes
1
answer
34
views
Apache2 mod_rewrite directive
The website I'm working on is essentially project-management software. Each project has a code (alphanumeric lowercase, with hyphens). The URL must include the codes and treat them as directories.
<...
4
votes
1
answer
655
views
.htaccess using public folder and SEO friendly URL
.htaccess is not my strong suit. Is there any there can optimize this code?
...
0
votes
2
answers
4k
views
Protect against XSS with .htaccess file
My .htaccess redirects everything to my index.php, but I wonder if it's vulnerable to XSS attacks. Am I safe?
.htaccess file
...
5
votes
2
answers
349
views
Securing PHP using a gateway that consults a whitelist
My site was recently infected and running malicious scripts. Once I discovered this, I cleared everything, the hosting company re-initialized the VPS and I setup my site anew. This is how I run my PHP ...
7
votes
1
answer
7k
views
Creating an object-oriented router class in PHP
On my way to learn OOP, I am developing a little CMS using the MVC pattern. I would like to have some feedback about my router class, mostly about if I am correctly using OOP.
Right now, I have a ....
8
votes
2
answers
6k
views
MVC router class
Below is what I have come up with for a router/dispatcher system for my personal framework I am working on. Can you please review and tell me any improvements that could be made?
The first part is ...