256 Kilobytes

All Content > .htaccess

Type All Category All Tag .htaccess

Profile Photo - Some Guy

How to leverage browser caching from an htaccess file?

Answers in Web Development | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:26:15 -0800

Profile Photo - Univa

Last Reply Paste these 15 lines into your .htaccess file. They should go right at the top of the file. ## EXPIRES CACHING ## <IfModule mod_expires.c>... Univa,

Paste these 15 lines into...

Sat, 20 Apr 2019 08:35:13 -0700 4 months ago
🗨
1
🐏
0
👁
154
Profile Photo - August R. Garcia

Solution to "How often does Dreamhost reload .htaccess?"

Answers in Web Hosting | By August R. Garcia

Published 6 months agoTue, 12 Mar 2019 00:05:32 -0700 | Last update 6 months agoTue, 12 Mar 2019 04:50:53 -0700

Profile Photo - August R. Garcia

Also, intermittent downtime for the next...

MoreWas running into some issues with getting .htaccess file updates to take effect when working on a different site hosted on the same server as 256 Kilo...
🗨
0
🐏
0
👁
137
Profile Photo - Hash Brown

How to use GZip compression on your website

Articles in Server-Side | By Hash Brown

Published 6 months agoSun, 10 Mar 2019 20:51:00 -0700

Profile Photo - Hash Brown

GZip is a form of file compression that...

MoreIn the quest for peak website performance you will come across GZip compression. This is something that can be used by the majority of websites to...
🗨
0
🐏
0
👁
255
Profile Photo - Hash Brown

How to add expires headers

Articles in Server-Side | By Hash Brown

Published 6 months agoSat, 09 Mar 2019 20:44:06 -0800

Profile Photo - Hash Brown

Expires headers are a great thing to add...

MoreIf you're trying to make your website load faster one thing you're going to need to look at is browser caching. What are expires headers? Expire...
🗨
0
🐏
1
👁
270
Profile Photo - Hash Brown

Preventing Hotlinking with .htaccess

Articles in Server-Side | By Hash Brown

Published 6 months agoSat, 09 Mar 2019 19:30:44 -0800

Profile Photo - Hash Brown

Hotlinking can be bad. It can choke your...

MoreIt's fairly common for people to steal images on the internet. Sometimes that's fine, you don't care, you might never even find out. On the otherha...
🗨
0
🐏
1
👁
264
Profile Photo - Some Guy

How to check if mod_rewrite is enabled in .htaccess?

Answers in Web Development | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:23:45 -0800

Profile Photo - roxblade

Last Reply Open FTP and issue the following command to your server:sudo a2enmod rewriteThis command tells you whether mod_rewrite is enabled or not. This is so f... roxblade,

Open FTP and issue the fo...

Tue, 05 Feb 2019 03:27:09 -0800 7 months ago
🗨
1
🐏
0
👁
96
Profile Photo - Some Guy

How to create an .htaccess file?

Answers in Web Development | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:24:25 -0800

Profile Photo - roxblade

Last Reply It's a normal text file. So, open your FTP software and go to the root directory of your WordPress installation. Here, you can upload any text file, r... roxblade,

It's a normal text file....

Tue, 05 Feb 2019 03:12:05 -0800 7 months ago
🗨
1
🐏
0
👁
109
Profile Photo - Some Guy

What should my htaccess file look like?

Answers in Web Development | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:24:35 -0800

Profile Photo - roxblade

Last Reply .htaccess is a WordPress feature. So, I recommend you learn about it first from official WordPress.org documentation (the WordPress Codex). A basic .h... roxblade,

.htaccess is a WordPress...

Tue, 05 Feb 2019 03:06:59 -0800 7 months ago
🗨
1
🐏
0
👁
107
Profile Photo - Some Guy

What permissions should my .htaccess have?

Answers in Web Development | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:24:55 -0800

Profile Photo - roxblade

Last Reply 705 is the regular permission. But if certain errors throw up and the .htaccess file isn't readable, then a 755 permission is what you need. roxblade,

705 is the regular permis...

Tue, 05 Feb 2019 03:04:35 -0800 7 months ago
🗨
1
🐏
0
👁
104
Profile Photo - Some Guy

How to enable GZip compression in a .htaccess?

Answers in Web Development | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:25:15 -0800

Profile Photo - roxblade

Last Reply It's very important to enable GZip compression to increase page load speed. Edit your .htaccess file by using FTP or cPanel's File Manager (after chec... roxblade,

It's very important to en...

Tue, 05 Feb 2019 02:58:21 -0800 7 months ago
🗨
1
🐏
0
👁
114
Profile Photo - Some Guy

In a .htaccess, how to redirect from http to https?

Answers in Web Development | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:25:25 -0800

Profile Photo - roxblade

Last Reply You can edit the .htaccess file using any text editor. Open your FTP software and then right-click the file once you're logged in, and then select "Ed... roxblade,

You can edit the .htacces...

Tue, 05 Feb 2019 02:54:02 -0800 7 months ago
🗨
1
🐏
0
👁
101
Profile Photo - Some Guy

How to remove/rewrite all "index.php" strings in a URL using .htaccess?

Answers in Server-Side | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:35:16 -0800

Profile Photo - roxblade

Last Reply It's simple. Add the following code to your .htaccess file and all .index.php will be removed from your URLs. <IfModule mod_rewrite.c>... roxblade,

It's simple. Add the foll...

Fri, 01 Feb 2019 02:50:49 -0800 7 months ago
🗨
1
🐏
0
👁
171
Profile Photo - Some Guy
Profile Photo - Hash Brown

Last Reply Hello, No, the .htaccess is located in the folder of the installation and there is not a WordPress default option for this. You need access to t... Hash Brown,

Hello,

Tue, 22 Jan 2019 15:59:15 -0800 7 months ago
🗨
1
🐏
0
👁
107
Profile Photo - Some Guy

How to remove the .php extension from urls using a site's htaccess file?

Answers in Server-Side | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:35:06 -0800

Profile Photo - Hash Brown

Last Reply Hello, This is fairly simple, adding the code below to your .htaccess file will blanket remove all .php extentions from your URL. #remove php... Hash Brown,

Hello,

Mon, 14 Jan 2019 13:18:34 -0800 8 months ago
🗨
1
🐏
0
👁
89
Profile Photo - Some Guy

[Htaccess] Redirect to subfolder without changing URL?

Answers in Web Development | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:26:25 -0800

Profile Photo - Some Guy

MoreI'm working in web development and having a problem redirecting my subfolders. Is it possible to redirect to subfolders without changing URL?
🗨
0
🐏
0
👁
114
Profile Photo - Some Guy

What is $1 in the .htaccess file?

Answers in Web Development | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:25:55 -0800

Profile Photo - Some Guy

MoreI'm going through the .htaccess file and I came across something that I was unsure of. What does the '$1' mean inside the file?
🗨
0
🐏
0
👁
75
Profile Photo - Some Guy

How to use .htaccess to redirect www to non-www? Or non-www to www?

Answers in Web Development | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:25:45 -0800

Profile Photo - Some Guy

MoreSo, I know I can use a .htaccess file to redirect traffic from one subdomain to another (e.g., www.blork.com to blork.com, or vice-versa). I'm no...
🗨
0
🐏
0
👁
90
Profile Photo - Some Guy

How to use .htaccess to redirect to another domain?

Answers in Web Development | By Some Guy

Published 8 months agoSun, 13 Jan 2019 04:25:35 -0800

Profile Photo - Some Guy

MoreHow do I use .htaccess? I'm told this can be to redirect to another domain and I just want to be sure I'm doing right. Anyone with experienc...
🗨
0
🐏
0
👁
84
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreJust started toying around with diffrrent settings in .htaccess - could someone please help me understand the difference between request_uri and reque...
🗨
0
🐏
0
👁
82