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

.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

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 Hide A Subfolder In Url Rewriting

My site is : www.mysite.com/subfolder/login/index.php I want the URL there to just be www.mysite.co… Read more How To Hide A Subfolder In Url Rewriting

Replace Space With Dash (-) In Url Only

Is it possible to change the space in the url to a dash (-) without changing it in the code? The UR… Read more Replace Space With Dash (-) In Url Only

Https To Http Htaccess Redirect For Home Page Only

I need help being able to redirect the home page of a website I'm building from HTTPS to HTTP. … Read more Https To Http Htaccess Redirect For Home Page Only

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

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)

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?

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?

Deny Direct Access But Allow Regular Html

I have the follow .htaccess inside upload directory: order allow,deny deny from all I want to allo… Read more Deny Direct Access But Allow Regular Html

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

User Agent For Mobile Application Htaccess File

I have done a jquery mobile application. Now i want to run the url in mobile device only and deskto… Read more User Agent For Mobile Application Htaccess File

.htaccess Redirect All Extension To Php

I recently updated my .htaccess file to hide the .php extension of the urls. It works nice, when I … Read more .htaccess Redirect All Extension To Php

.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

Removing '#' From Url Using Htaccess In Html Web Page

I am trying to remove the # in the following URL: (www.example.com/#section1). How could I do this … Read more Removing '#' From Url Using Htaccess In Html Web Page

Custom Login With Htaccess Through Html/php

I'm working on a site with a directory that is protected with htaccess. I'd like to create … Read more Custom Login With Htaccess Through Html/php

How To Prevent Access Of Admin Pages By Knowing The Admin Page Url?

If someone knows my url of the admin page such as www.example.com/admin.php, then they will easily … Read more How To Prevent Access Of Admin Pages By Knowing The Admin Page Url?

How To Redirect Multiple Similar Urls With One Query?

I currently have lots of URLs that look like this: http://www.domain.com/classes-dallas-tx.html I n… Read more How To Redirect Multiple Similar Urls With One Query?

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