Posts

Showing posts with the label Htaccess

htaccess-html to php

RewriteEngine on Options +FollowSymlinks RewriteCond %{HTTP_REFERER} http://www.example.com/ca_2010_workblert/ # avoid listing of folders Options -Indexes ErrorDocument 500 /error_page.php ErrorDocument 404 /error_page.php ErrorDocument 401 /error_page.php ErrorDocument 403 /error_page.php RewriteRule about.html about.php RewriteRule Benefits.html Benefits.php RewriteRule Tour.html Tour.php RewriteRule Pricing.html Pricing.php RewriteRule Tryit.html Tryit.php RewriteRule http://example.com.tr/checkout_payment.php https://example1.com.tr/checkout_payment.php RewriteRule http://example.com.tr/checkout_confirmation.php https://example.com.tr/checkout_confirmation checkout_confirmation.php?osCsid=f1fd33b7879b1f8ced6171a20604128a

htaccess-fix default indexpage

RewriteEngine on Options +FollowSymlinks RewriteCond %{HTTP_REFERER} http://www.example.com/ca_2010_workblert/ # avoid listing of folders Options -Indexes DirectoryIndex about.php ErrorDocument 500 /error_page.php ErrorDocument 404 /error_page.php ErrorDocument 401 /error_page.php ErrorDocument 403 /error_page.php RewriteRule about.html about.php RewriteRule Benefits.html Benefits.php RewriteRule Tour.html Tour.php RewriteRule Pricing.html Pricing.php RewriteRule Tryit.html Tryit.php

htaccess for three folder act as differ domain

//outer files act as domain //(folder monnocode act as another domain) //(folder voucher act as another one new domain) Options +FollowSymlinks RewriteEngine on RewriteRule ^/?meingutschein(/(.*))?$ http://meingutscheincodes.de/$2 [R=301,L] ErrorDocument 500 /error_page.php ErrorDocument 404 /error_page.php ErrorDocument 401 /error_page.php ErrorDocument 403 /error_page.php RewriteRule ^merchantpage/([0-9]+)/([0-9]+)/([a-zA-Z0-9_-]+)\.html$ merchantpage.php?id=$2 RewriteRule ^index.html index.php RewriteRule ^aboutus.html aboutus.php RewriteRule ^merchantpagelistbyletter.html merchantpagelistbyletter.php RewriteRule ^contactus.html contactus.php RewriteRule ^terms.html terms.php RewriteRule ^goclick.html goclick.php

htaccess for http into https

RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.sahapkuyumcu\.com\.tr [NC] RewriteRule ^(.*)$ https://www.sahapkuyumcu.com.tr/$1 [L,R=301] this is htaccess used to convert website.com into https://www.website.com

htaccess

0 Is there a way to put a rewrite rule in htaccess that will convert query strings to segmented URIs? For eg. http://domain.com/controller/method/?a=1&b=2&c=3 should get rewritten as http://domain.com/controller/method/a/1/b/2/c/3 RewriteRule ^files/([^/]+)/([^/]+).zip /download.php?section=$1$file=$2 [NC] http://mysite/files/games/hoopy.zip and in the background have that transparently translated, server-side, to.. http://mysite/download.php?section=games&file=hoopy

htaccess php to html

Options +FollowSymlinks RewriteEngine on ErrorDocument 500 /error_page.php ErrorDocument 404 /error_page.php ErrorDocument 401 /error_page.php ErrorDocument 403 /error_page.php RewriteRule ^merchantpage/([0-9]+)/([0-9]+)/([a-zA-Z0-9_-]+)\.html$ merchantpage.php?id=$2 RewriteRule ^index.html index.php RewriteRule ^aboutus.html aboutus.php RewriteRule ^merchantpagelistbyletter.html merchantpagelistbyletter.php RewriteRule ^contactus.html contactus.php RewriteRule ^terms.html terms.php RewriteRule ^goclick.html goclick.php

POPULAR POSTS ::

JOIN QUERY

Add multiple upload box

HTML and PHP INTRODUCTION

The top Web development PHP frameworks

Mobile App Development Trends: Emerging Technologies and Innovations

String Separation