5,747 questions
1
vote
1
answer
80
views
Dynamic WordPress .htaccess subdomains does not work
I am trying to load custom dynamic subdomains to load as specific subfolders on my WordPress site.
Example:
apple.example.com should load the content from example.com/subfolder/apple
apple.example....
0
votes
1
answer
182
views
How to redirect requests locally from one domain to another on mac
I need to test accepting requests from a custom domain to my local web server.
The idea is I have a main app domain
main-app.com
I provide a subdomain for users
user-1.main-app.com
Then the user can ...
1
vote
1
answer
85
views
Next.js host based rewrite did not trigger on the root path
I want my subdomain sub.example.com to render the page example.com/brand without changing the URL.
Examples
sub.example.com/ should render example.com/brand
sub.example.com/work should render example....
0
votes
0
answers
32
views
How does setting the cookies samesite attribute to strict affect a web application with the FE and BE on two different sub domains?
In my web app, I have whitelisted all the domains for CORS. I still need to set the sameSite and secure attributes for cookies. My frontend and backend are in 2 different sub domains. my microservice ...
-1
votes
1
answer
72
views
token in cookie get lost after refreshing the page. MERN stack
i am using the mern stack to make chat app, everything works fine on the my local environment but when i deployed my site on render and vercel both, they have common problem -> after login token is ...
0
votes
1
answer
85
views
Laravel: Google is indexing my site with subdomains, which are now obsolete. How to redirect?
In my app I had ca. 20 subdomains. Now they are gone and https certificates with them.
However, Google is indexing my site with use of the subdomains, which was never my intention.
Example:
Google ...
0
votes
1
answer
122
views
How to Combine Next.js 14 Middleware with next-intl for Localization, Province Subdomain Rewrites, and CORS?
I'm working on a Next.js 14 (and I want to configure localization) project using the App Router and need to combine three middleware functionalities:
Province subdomain rewrites
Localization with ...
-1
votes
1
answer
121
views
How to manually enumerate subdomains?
I am currently trying to enumerate subdomains with wildcard filtering straight from the linux terminal. I have created a shell that seams to be spot on but the output files keep coming up empty. Any ...
0
votes
2
answers
155
views
Where to set up subdomain routing? Front-end (React) or Django (Backend)?
I'm currently building a multi-tenant web application using Django and React. Right now, each user's page is available at a URL like https://mywebsite.com/. However, I want to change this so that each ...
0
votes
0
answers
37
views
Flask Subdomain Routing Not Working Correctly After Deployment on Render.com
I'm stuck with an issue on how to properly set up subdomains in my Flask project. Here's a simple example of the code I'm working with:
from flask import Flask
app = Flask(__name__)
app.config['...
0
votes
0
answers
37
views
LinkedIn won't preview any URLs at my domain or subdomain
LinkedIn will not fetch any URLs on my domain for a post. When I use Post Inspector with any url for my domain or any of its subdomains I get this message: "We did not re-scrape (url) because the ...
0
votes
0
answers
73
views
How can I point a subdomain at a directory without breaking PHP includes?
I am trying to use a subdomain to make an internal file browser on my site look flashier. My site is example.com. I have a directory at example.com/files/, with many various subdirectories.
I want ...
-2
votes
1
answer
35
views
Does Chrome silently drop some subdomain names?
I have a website with a main domain and several subdomains.
example.com
sub1.example.com
ltd.example.com
They all have visibly different content.
With Chrome if I enter sub1.example.com I get sub1....
2
votes
1
answer
78
views
How does shopify verifiy that the 3rd party domain I try to connect via settings>domains does not belong to another shopify user?
According to connect-subdomain help page the steps to connect a 3rd party domnain to your shopify store is:
on the 3rd party provider: Point the CNAME record for your subdomain to shops.myshopify.com
...
0
votes
0
answers
49
views
CloudFlare - redirect non existing subdomain to custom URL
I want to redirect all unexisting subdomains to a specific URL.
E.g:
j23g424g.mydomain.com → mydomain.com/404
ghj294g02g.mydomain.com → mydomain.com/404
etc...
So if a subdomain doesn't exist (user is ...
0
votes
0
answers
42
views
Django CsrfViewMiddleware and exploited SubDomain
Context (Double Submit Cookie and Subdomains):
When using a CSRF token with a cookie for the Double Submit Cookie method, you have to ensure the client receiving the cookie can read this cookie, and ...
1
vote
1
answer
121
views
Nginx proxy all subdomains
I currently proxy a website on my.domain:6799 to remote.com but that domain also uses subdomains like img.remote.com or video.remote.com.
It it possible to add some kind of rule that proxys the ...
1
vote
2
answers
94
views
How to move image to another subdomain's public folder?
My code for moving an image to another subdomain public path:
<?php
if ($request->front_picture_path != '') {
$imageName3 = time() . '_front.' . request()->front_picture_path->...
0
votes
0
answers
216
views
Sharing oauth token across subdomains for authentication
I am trying to create a web portal which consists a list of links to multiple other applications hosted in subdomains of portal. Portal and individual applications use same third party oauth2 provider ...
0
votes
0
answers
33
views
Redirect subdomain blog.site.com to the folder site.com/blog using cloudflare workers
I need to redirect my subdomain (blog.site.com) to the folder (site.com/blog) using Cloudflare workers.
The main site, site.com is deployed on Netlify where I am using ReactJS. Also, I have deployed ...
0
votes
0
answers
32
views
How to Make Images Stored in the Storage Folder Accessible in a Laravel Project Hosted on a Subdomain?
I have a Laravel project hosted on a subdomain (e.g., https://stackkit.swiftly.online), and I store images in the storage/app/public directory. I want these images to be accessible via the browser, ...
0
votes
1
answer
24
views
Redirect all nonexistent subdomains trough masked redirect to main domain - wordpress
I run a wordpress website and I want to redirect all subdomains (e. g. www.anything.mydomain.com" to display the contents of mydomain.com. Is it possible? If not, how could I redirect all ...
0
votes
0
answers
257
views
How to Share NextAuth.js Session Token Across Subdomains in Next.js
I’m using Next.js and NextAuth.js in my project, which includes multiple subdomains. For authentication, I’m using the Credentials Provider in NextAuth.js. On login, Next.js stores the session in a ...
0
votes
1
answer
76
views
Is there a way to extract the apimuid verfication ID property via bicep that is needed for a managed custom domain on APIM?
I need to be able to create a TXT record pointing to an APIM verification ID, I've found a way to do this with web apps, but APIM seems to not be the same. For example below I tried:
// Reference an ...
0
votes
1
answer
232
views
How does ngrok efficiently manage multiple subdomains without creating individual DNS records?
I want to build a service similar to ngrok and I'm trying to understand the architecture behind ngrok's subdomain management for their tunneling service. From what I can see, ngrok provides unique ...
1
vote
1
answer
533
views
Setting Cookies Domain with pinia persisit store on Nuxt 3
I'm setting up SSO login for two apps on the same sub-domain using Nuxt 3 with Pinia and persisting data in cookie storage. The issue is configuring the cookie's domain option so that it's accessible ...
3
votes
1
answer
3k
views
How to configure allowed hosts with subdomain wildcard matching in Vite?
In Webpack, I can configure allowed hosts with subdomain wildcard matching using the allowedHosts option like this:
allowedHosts: ['.host.com', 'host2.com']
This configuration allows:
host2.com
Any ...
0
votes
0
answers
29
views
Multiple Repositories over Multiple Subdomains with Github Pages
Current Setup
I have multiple repositories setup in Github Pages, with the subdomains:
site.com
foo.site.com
bar.site.com
Intention
There's a new repository that I want to add as a page for one of ...
0
votes
0
answers
19
views
Cookie and subdomain
Say website A makes request to website B.
If B sets cookies for A, then every subsequent A-to-B request has that cookie header. I got this. But what about subdomain?
Does sub.A-to-B request share ...
-1
votes
1
answer
46
views
Unable to setup sub domain with Transip & Azure VM [closed]
I trying to setup a subdomain api.mydomain.com in Transip, I can ping mydomain.com but not api.mydomain.com, ping is ICMP is enabled in the VM, This is the scenario:
mydomain.com domain works can ...
1
vote
0
answers
93
views
cloudflare worker to router subpath to multiple subdomains
I use cloudflare pages to deploy static website and assign subdomains for each one under same root domain.
when user access subpath like the following:
rootdomain.com/generator/subdomaina
rootdomain....
0
votes
0
answers
46
views
"Invalid argument(s): No host specified in URI tenantone.localhost:" How to make local API call to a url with subdomains
I was trying to make an API call to a Laravel API that has subdomains from my Flutter app.
Response res;
try {
res = await axios.post("http://tenantone.localhost:8000/api/driverLogin", {
...
0
votes
1
answer
121
views
Nginx static site w/ SSL + subdomain proxy pass to NodeJS
I'm trying to set up a website with contact form on a VPS (Debian 12). Nnginx serves the static files at domain.com, and the contact form POSTs to form.domain.com, which is handled by a node/express ...
0
votes
0
answers
58
views
Rails multidomain project, it shows only Welcome page, other routes show routing error
I have a project with multiple subdomains for companies. When I access the project in production, it first shows the welcome page of the project, which has a login button that I can use to log in. ...
0
votes
1
answer
61
views
How can I create and test two web apps in two separate application pools on my local machine?
I have been tasked with determining how to maintain user sessions via cookies from one subdomain to another across multiple application pools. My findings so far indicate that subdomains can share ...
0
votes
1
answer
601
views
Unable to use our PowerDNS Nameservers with GoDaddy domains - Error message: "nameserver isn't registered"
We are https://elitedomains.de/, a German domain provider offering nameservers for our customers to use with external domains as well. However, we have encountered an issue when trying to use our ...
2
votes
0
answers
390
views
NextAuth.js Subdomain Cookie Issue: Cookies Inaccessible on Subdomains
I'm working on implementing authentication using AuthJS (NextAuth) in a Next.js app. I want the session and CSRF cookies to be accessible across subdomains (e.g., *.localhost:3000) as well as the main ...
0
votes
2
answers
57
views
upload file from subdomain to subdomain
How To Upload file from https://subdomain.laravel.com/ to https://assets.laravel.com/
Example your project on https://subdomain.laravel.com/
'assets' => [
'driver' => 'local',
'root' =&...
0
votes
0
answers
78
views
ActionController::InvalidAuthenticityToken Error with domain: ':all' in Rails Session Store
I’m encountering an ActionController::InvalidAuthenticityToken error in my Rails application when using the session store configuration with domain: ':all'. The issue appears specifically when setting ...
0
votes
0
answers
131
views
Handling CORS with Wildcard Subdomains in Flask-SocketIO
I'm trying to configure Flask-SocketIO to handle CORS for multiple subdomains (e.g., cors_allowed_origins='*.domain.com').
allowed_origins = [
'https://*.domain.com',
'http://*.localdomain.com' # ...
0
votes
1
answer
91
views
CORS header ‘Access-Control-Allow-Origin’ missing error for new Cloudfare domain
My frontend, registered to the playlistmoodevaluator.com domain on Cloudflare, routes to a React CRA-based app hosted on Render.
My backend, registered to the api.playlistmoodevaluator.com subdomain ...
0
votes
1
answer
54
views
Redirect all requests from subdomain to another subdomain including API requests with body and headers (ASP.NET MVC on IIS)
I have an application hosted in IIS with using ASP.NET MVC 5.
In this project there are pages with classic MVC pattern, but it also has API endpoints (ASP.NET Web API).
I want to change subdomain of ...
1
vote
0
answers
27
views
Desktop to Mobile on Subdomain using redirect and Canoncial Link rel Tag
For years the website structure has been Desktop with Mobile friendly site on a subdomain using this code on the desktop with canonical stated on both versions and in in the desktop sitemap.xml and I ...
0
votes
0
answers
232
views
Having an issue with my DNS not showing my CNAME and TXT records dont know what to do
so im having a bit of an issue with namecheap and my DNS. So for context me and a friend are trying to get email verification up for a project were working on and so we went ahead and set up a domain ...
0
votes
0
answers
193
views
How do I securely point a subdomain from Hostinger to a CloudFlare page?
I have a website hosted on Hostinger, with the domain managed on Hostinger as well.
I've built a seperate page which I am hosting on CloudFlare Pages that I would like to make accessible via a ...
0
votes
4
answers
161
views
How to get a link with subdomain either using url() helper or route() helper in Laravel?
I have set up my subdomain domain routes like this:-
Route::group(['domain' => '{subdomain}.' . env('APP_URL'), 'prefix' => 'console', 'namespace' => 'admin', 'middleware' => 'subdomain'], ...
0
votes
0
answers
59
views
Route 53 subdomain not routing correctly to Elastic Beanstalk environment
I have a domain through Squarespace.
I have a NestJS application hosted with AWS Elastic Beanstalk. This is up and running and accessible through the generated domain name.
I have an AWS Amplify ...
0
votes
1
answer
125
views
NextJS 13+ rewrites to subdomain issues
Im trying to get my /archives to rewrite to archives.localhost for now. Im trying to understand rewrites and I think I have a basic understanding of it. When I go to the main index page archives....
0
votes
0
answers
49
views
Point Sub-domain to Node.js Server
I'm having some trouble getting my Node.js server to show up on my sub-domain. Here's what I've done so far:
I have a Windows VPS running a Node.js server at http://192.168.0.12:443/.
I want this ...
0
votes
1
answer
52
views
Hosting subfolders on different domains
I would like to host my content on two different servers. There is the main website content domain.com/main-stuff, and there is the campaign pages content domain.com/landing-pages/other-stuff.
Is ...