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

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

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

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?

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

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

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

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

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

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

Remove .html From Url In Apache2

I am trying to remove .html so the site is www.example.com/login login.html is located in /var/www… Read more Remove .html From Url In Apache2

.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

Get Data From Within Url

On my website, say test.com, if someone visits test.com/hello I want it to redirect to test.com and… Read more Get Data From Within Url

Htaccess Mobile Redirect For Specific Url

I have a created a duplicate m.website.com that have mobile friendly contents in them. However ther… Read more Htaccess Mobile Redirect For Specific Url

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

.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

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 Convert My Htaccess Code To Php Header

I have these lines of code in my .htaccess. My problem is is this line of code is in my .htaccess … Read more How To Convert My Htaccess Code To Php Header

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?

Php In Html Files Not Running Or Being Commented Out

First of all, I am not trying to run php within a js script, there is a similar question on here th… Read more Php In Html Files Not Running Or Being Commented Out