drupal ssl login without module and using apache .htaccess

Use following code in .htaccess file.


RewriteCond %{HTTPS} on
 RewriteCond %{REQUEST_URI} !^/(user|admin)$
 RewriteCond %{QUERY_STRING} !^q=(user|admin)
 RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [L]

 RewriteCond %{HTTPS} off
 RewriteCond %{REQUEST_URI} ^/(user|admin)$
 RewriteCond %{QUERY_STRING} ^q=(user|admin)
 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,QSA]

use content type in url drupal

If you are using drupal6 then this is helpful

use the pathauto module for this.

http://drupal.org/project/pathauto

if you want custom url for every content type. for example

content type – blog – http://drupalor.com/blog/test1
content type – story – http://drupalor.com/story/test1
content type – page – http://drupalor.com/page/test1

Go to admin – build/path/pathauto page.

open “node paths”.

Change url pattern as per your need.

Changing the pattern does not affect any existing content which has already been aliased. You should go to admin/content and then use the ‘Update URL alias’ action on the content which you want to use the new pattern.