Skip to content Skip to sidebar Skip to footer
Showing posts with the label .htaccess

Removing .html Url Extension Using .htaccess Not Working

I'm using the below code to remove .html extention form url, but it is not working.. can any on… Read more Removing .html Url Extension Using .htaccess Not Working

How To Properly Make 301 Redirect

I have over 50 html pages that I'm going to move to different folders in the same domain. How t… Read more How To Properly Make 301 Redirect

.htaccess Http_user_agent Not Working

I'm having problems the .htaccess file, normally it checks the user referer and if is from my s… Read more .htaccess Http_user_agent Not Working

Using .htaccess To Append .html Behind Url Path

People are coming into my website like this: sitename.com/brands/brandA But this will cause an 404 … Read more Using .htaccess To Append .html Behind Url Path

Pretty Urls Without Mod_rewrite, Without .htaccess

Without a possibility to access .htaccess I find myself in a creative impasse. There is no mod_rewr… Read more Pretty Urls Without Mod_rewrite, Without .htaccess

How To Understand A Website Is Using Gzip Compression?

I am trying to check any website is using gzip or not? I found this explanation on Nibbler, We che… Read more How To Understand A Website Is Using Gzip Compression?

Need To Remove .html File Extension And Duplicate Names

I have a .htaccess file with the contents below, that removes the .html file extension for all of m… Read more Need To Remove .html File Extension And Duplicate Names

Protecting Certain Files And Folders From View Within A Public Folder

Today I've been struggling with this for a while. What I am trying to accomplish is that I need… Read more Protecting Certain Files And Folders From View Within A Public Folder

.htaccess Condition - Action Dependent On Filetype

What I have is a rule: RewriteCond %{REQUEST_FILENAME}.php !abc.php RewriteRule ^(.*)$ some.php [… Read more .htaccess Condition - Action Dependent On Filetype

Rewriteengine In .htaccess To Catch Files Not Ending In Html

I'd like to use mod rewrite in to convert web page addresses like /directory to /directory/inde… Read more Rewriteengine In .htaccess To Catch Files Not Ending In Html

Prevent Direct Access To Php Script But Allow From Index.html

I have a simple contact form where users input their data and the form sends it to 'mail.php… Read more Prevent Direct Access To Php Script But Allow From Index.html

Use Global Variables To Dynamically Change Url

So this is going to be really hard to explain, I have an A folder and I have a B folder. I am using… Read more Use Global Variables To Dynamically Change Url

Rewrite Engine .htaccess Mime Type Error

I have a script that make search and I want the results also be accessible with query mysite.com/se… Read more Rewrite Engine .htaccess Mime Type Error

Http-equiv="x-ua-compatible" Content="ie=edge,chrome=1" ... Putting This In .htaccess?

I downloaded html5 boilerplate and it wouldnt validate with this in the header. I was told I can … Read more Http-equiv="x-ua-compatible" Content="ie=edge,chrome=1" ... Putting This In .htaccess?

How To Add Mime Types To An Htaccess File?

I'm having an issue adding a mime type to my server. This is my current .htaccess: AuthUserFile… Read more How To Add Mime Types To An Htaccess File?

Htaccess Url Rewrite With Multiple Variables In Url

I want to make some url rewrite rules on my .htaccess file so that this link: http://myseite.com/in… Read more Htaccess Url Rewrite With Multiple Variables In Url

Using Htaccess To Redirect A Directory, But Not The Files In It

On my website, I've got a directory /folder with some images and html in it. I want to redirect… Read more Using Htaccess To Redirect A Directory, But Not The Files In It

How To Hide Url From Users When Submitting This Form?

I have a form with many many fields... When submitting these fields, I use the POST method which hi… Read more How To Hide Url From Users When Submitting This Form?

How To Add A Html Header To All Html Pages Of A Folder Automatically With Htaccess?

I tried this Options +Indexes IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=… Read more How To Add A Html Header To All Html Pages Of A Folder Automatically With Htaccess?

How To Block Direct Access To .html Files? (.htaccess)

I want to block direct access to multiple files, but being able to access in index.html For example… Read more How To Block Direct Access To .html Files? (.htaccess)