skip to Main Content

APACHE SSL WWW redirect to real name

In .htaccess file: # Enable mod_rewrite RewriteEngine on # Rewrite file name RewriteRule ^dome.htm$ dome.php [L,QSA] # Force www RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^www. [NC] RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # Force SSL RewriteCond %{HTTPS} off RewriteRule…

VIEW QUESTION

Using Apache mod rewrite to modify a query string

I know it is possible to use mod rewrite in my htaccess Take: http://example.com/directory/perlscript.pl?base64encodedquery=jhfkjdshfsdf78fs8y7sd8 Make a shorter URL: http://example.com/? whatever just want to make it prettier Incoming: I am using use CGI; thus $qry->param('base64encodedquery')); Then I use use MIME::Base64 to…

VIEW QUESTION
Back To Top
Search