Skip to content

Tag: .htaccess

.htaccess – redirect everything

I am trying to get a landing page to work while I am doing scheduled updates on my site. So basically all my original files will still exist in the directory including my index.php file but I’ve …

How to protect ASSETS FOLDER in codeigniter

I just wanna protect my assets folder in client side. All of my files can access public. I wanna protect it. I have rules .htaccess like below, any wrong rules there? Answer You can do two things via .htaccess (Not Tested) via index.html 1. .htaccess add .htaccess inside the assets folder 2. index.html Create…

.htaccess is renaming my css, img, and js

I am trying to route a single blog post from a url The url looks like this : http://localhost/news/post/1/post-title-slug And my .htaccess: And my routing file I am currently using a library called nezamy/route When I do this my css, js and images is renamed as well to something like this: http://localhost/ne…