Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
Building a Controller on PHP
Post Body

I am building a website using PHP and I have ran into a problem when trying to build a controller. So I have my page url names listed as: "/", "/about", "/courses". The home page seems to be working but when I click on the about us page I am getting an error: "The requested URL was not found on this server." When I include .php for each of the URL page names, it works fine. Could someone help me out with this?

<a href="/" class= "<?php urlIs('/') ? 'bg-black text-black' : 'text-gray' ?> nav-link"> Home</a></li>

<li class="nav-item active"><a href="/about" class="<?php urlIs('/about.php') ?> nav-link">About Us</a></li>

<li class="nav-item active"><a href="/courses" class="<?php urlIs('/courses.php') ?> nav-link">Courses</a></li>

Author
Account Strength
60%
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
26
Link Karma
16
Comment Karma
10
Profile updated: 3 days ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 months ago