Skip to content
Advertisement

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 index.html file inside the directory and

.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/news/post/1/css/main.css Answer You need to add the css/js files

Add New Parameter to Existing URL using htaccess

I have a url like below But i want to add an additional parameter to this url like below. For this i am using .htaccess to redirect with additional parameter but it is not redirecting still show original url. RewriteRule /index3.php$ index3.php?email=$1 [R] But it is not working. How can i redirect with additional parameter? Answer Try this simple one.

Advertisement