subdomain

Force HTTPS and WWW for domain and only HTTPS for subdomains HTACESS

て烟熏妆下的殇ゞ 提交于 2019-12-09 00:58:39
问题 I've been trying to configure this for my website, but not being able to. I use to have a cond on my .htaccess to force www for the main domain and nothing for subdomains, but since I got a SSL, I'm having some problems. It's a wildcard SSL. What I need is force HTTPS:// WWW on the main domain, and HTTPS:// on subdomains. I.E: http://www.domain.com -> https://subdomain.domain.com Is there any rule for that? Thanks! EDITED Now I'm using like Jon posted RewriteEngine On RewriteCond %{HTTPS} !

How to upload laravel project on subdomain?

扶醉桌前 提交于 2019-12-09 00:51:02
问题 I want to host a laravel project in a subdomain.. For that first First I create a subdomain name registraion. And inside the publicm_html/registraion i upload the project file. But when I see the project on url I saw only files not the project I stored. what's the problem of uploading the laravel project? Can anyone help me to find it out? 回答1: Assuming you are using cPanel to create subdomain. Below are the general steps that are required to setup sub-domain for laravel-project. Create your

Rails Restful Routing and Subdomains

半世苍凉 提交于 2019-12-08 23:10:16
问题 I wondered if there were any plugins or methods which allow me to convert resource routes which allow me to place the controller name as a subdomain. Examples: map.resources :users map.resource :account map.resources :blog ... example.com/users/mark example.com/account example.com/blog/subject example.com/blog/subject/edit ... #becomes users.example.com/mark account.example.com blog.example.com/subject blog.example.com/subject/edit ... I realise I can do this with named routes but wondered if

Using Subdirectory as subdomain in htaccess

烂漫一生 提交于 2019-12-08 22:36:08
问题 I am trying to point a subfolder on my site as a subdomain. for example, i want to turn www.domain.com/test to test.domain.com. I already have some rewrites in htaccess done by developers that we used earlier in the site building process, and I'd like to be able to add this line without interfering with those. I've tried dozens of answers to this issue i found across the net, but none of them seemed to work and i'm not sure if it's due to my lack of knowledge of this language or if there's a

Is a wildcard SSL cert necessary if all sub-domains point to the website root

放肆的年华 提交于 2019-12-08 21:43:52
问题 I am completely new to SSL certificates and need to purchase one pretty soon. There seems to be a huge price increase when sub-domains come into play. My question is this: I have my site set up so that username.domain.com is rewritten via htaccess to domain.com?user=username If I have my web site set up so that all sub-domains are virtual and point to the same location, do I need to buy a wild-card SSL Cert? 回答1: If you want the user to be able to view your site by visiting https://username

Delete Session Cookies Across Multiple Subdomains in Rails 3

∥☆過路亽.° 提交于 2019-12-08 19:26:31
问题 I'm building a rails app that works similar to Wufoo. When you sign up you get a subdomain, and you can log in on the home page. The app is working, so that when you log in, you get redirected to your subdomain. The problem is that I can't delete the session on both domains. If you log out at (username.myapp.com), it stays logged in at (myapp.com) and vice versa. Right now I'm using session[:user_id] = nil to delete the session. Is there a way to delete all the sessions across all domains. In

Rails routes, url and subdomains

夙愿已清 提交于 2019-12-08 19:08:38
问题 My ruby app is divided in different namespaces. like: free(free.domain.com), pro(pro.domain.com), vip(vip.domain.com) In the routes file looks like this: namespace :free do match 'home' => 'free#home', :via => [:get, :post], :as => :home #more routes end namespace :pro do match 'home' => 'pro#home', :via => [:get, :post], :as => :home #more routes end namespace :vip do match 'home' => 'vip#home', :via => [:get, :post], :as => :home #more routes end match '/about' => 'pages#about' match '/team

Java spring security - intercept subdomain url for different login?

梦想的初衷 提交于 2019-12-08 18:58:24
问题 I have an application with spring security installed and working well -- it is currently running out of www.exampledomain.com . I now want to expand the application running out of a subdomain. For example newapp.exampledomain.com . The only problem is that for this new app a user needs to log in. In spring it is very easy to intercept urls via <intercept-url pattern="/Admin/*" access="ROLE_GENERAL"/> but what do you do when you want to intercept a subdomain for login? For example the

Set session cookies for specific subdomains

旧街凉风 提交于 2019-12-08 16:33:16
问题 I have a website with multiple subdomains, which share a unique PHP session cookie to identify each user. I did this by simply adding session.cookie_domain = '.mydomain.com' , however I'm wondering if it's possible to specify more than one subdomain, so that cookies will only get sent to, for example, www.mydomain.com and user.mydomain.com but won't in images.mydomain.com . Would this be possible? 回答1: No, those would have to be 2 separate cookies. You would have to create a sub-domain like

Redirect all pages except one page to sub-domain htaccess

大城市里の小女人 提交于 2019-12-08 14:53:58
问题 I have a index.php in my main domain root domain.com/index.php And ive moved my forums which was in the same "root" to a subdomain forums.domain.com I need to Redirect everything except the index.php ive tryed loads of ways and none seem to work Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{SCRIPT_FILENAME} !index\.php$ RewriteRule ^(.*)$ http://forums.domain.com [L,R] RewriteEngine On RewriteCond %{HTTP_HOST} animelon\.com [NC] RewriteCond %{REQUEST_URI} !^index\.php$