Tags » Htaccess

Get wp-content/uploads files from live site on localhost

While modifying clients WordPress sites I don’t download the uploads directory contents so to avoid 404s in Chrome’s Developer Tools console I modified .htaccess to redirect those URLs to the live site. Tested in a docker container.

Wordpress

Disable Directory Browsing

To disable directory browsing like http://www.tapdanceman.com/wp-content/plugins/podpress/  in WordPress all you need to do is add a single line of code in your WordPress site’s .htaccess… 11 more words

Htaccess

Redirect Sub directory URLs to w/ sub directory - .Htaccess

We usually see a typical redirect done for either:

Htaccess

Hardening Wordpress Site

I’ll write the most common things to do to harden our WordPress site Based on my experience on handling hacked sites.

Work

htaccess redirect index.php/index.html to root + Force www

Force non www to www domain without adding domain name

—————-CODE Start——————-

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1

—————-ENDOFCODE——————-

Redirect http://www.mysite.com/index.html to… 57 more words

Apache Server

Set Up WordPress with Optimal .htaccess Settings

If you are a WordPress user then you probably have met the .htaccess file. The .htaccess file allows you to make configuration changes on a per-directory basis and it is very useful in case you want to enable/disable additional functionality and features for your site. 60 more words

How to remove index.php from url in CodeIgniter

Yes, you can remove the index.php from your url in your CodeIgniter web application.

You just need to add a .htaccess file in your web application folder. 82 more words

PHP