Posts

Showing posts with the label redirect

rails redirect after login devise

devise_scope :user do  authenticated :user do    root 'dashboard#index', as: :authenticated_root  end  unauthenticated do    root 'home#index', as: :unauthenticated_root  end end

redirect site http to https

Redirect site http to https  There are two ways to redirect http to https Open your nginx Server Configuration file server {     listen 80 default_server;     server_name _;     return 301 https://$host$request_uri; } Open your production.rb file and copy and paste this line config.force_ssl = true  For Redirect Http to https you must have to add SSL Certificate in your site if you add SSL certificate to your site Https will be bordered with Green colour in url of site if you did not add  SSL certificate to your site Https will be bordered with Red colour in url of site(same in case if your SSL Certificate Expire)

What is sql definition(Structured query language). Sql Tutorial -2

Image
Structured query language It is a collection of pre defined commands and constructs with syntactical rules. 1. Sql is a client tool to interact with ORACLE DB /any DB 2. Sql is to be installed in to the system whenever we have installed the db software. 3. Client [Technical] requests should be submitted in the form of "Queries". 4. Queries are executed by SQL STMT EXECUTOR ( Oracle Db Engine ) 5. Queries are executed against database and output will be displayed on the Sql * plus window.

React Application by Webapck || webpack install

Image
Create a directory into your local         for windows            mkdir react-demo         for linux                       mkdir react-demo Go to directory             cd react-demo Type npm init            for installing node and creating package.json file npm i webpack --save-dev           create dependency by webpack npm i webpack-cli --save-dev           This cmd is used to create dependency for webpack-cli in package.json file.           Like -             "devDependencies": {            "webpack": "^4.16.2",            "webpack-cli": "^3.1.0"             } npm install -D babel-loader @babel/core @babel/preset-env webpack "devDependencies": {    "babel-core": "^6.26.3",    "babel-loader": "^7.1.5",    "babel-preset-env": "^1.7.0",    "webpack": "^4.16.2",    "webpack-cli":

Header Function || How to Redirect in php

Header Function || How to Redirect in php Header is a fuction which is used to Redirect current page to specified page. syntax. 1).header(‘Location: specified_page_name ’); 2).header(“refreash;1;url= specified_page_name ”);       2nd statement takes you on specified page after 1 second.