Ok so after many false attempt I was able to get hold of the redirects, now the CSS file was not getting the path, previously the path was
Directory Structure
<base>
<stylesheets>
default.css
</stylesheets>
home.php
.htaccess file
</base>
localhost/my_website/stylesheets/default.css
And I used to write this as
<link href="stylesheets/core.css" rel="stylesheet" type="text/css" />
in home.php
But after url rewrite the path was lost in home.php
, it was assuming the stylesheet
folder is like
home/stylesheets/core.css
So I changed it manually to
<link href="../stylesheets/core.css" rel="stylesheet" type="text/css" />
And it worked, so does this mean I need to change each and every URL like this?
Also do I need to change the header()
paths too? Right now they are like
header('Location: home.php?page=dashboard');
To
header('Location: home/?page=dashboard');