•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Site Layout and Usability section within the Web Development category of DaniWeb, a massive community of 375,238 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,123 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Site Layout and Usability advertiser:
Views: 675 | Replies: 2
![]() |
•
•
Join Date: Jan 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi, I have a problem with my domain. Ok I have my original site (call it mainsite .co.uk) and a second site (call this secondsite .co.uk). All the files for second site are stored in a subdomain of the mainsite.
When people access the site using a straight forward domain (www.secondsite .co.uk) everything is fine, when they access a folder with a forwardslash on the end (www.secondsite .co.uk/folder/) everything is fine.
BUT when they access a folder without a forwardslash (www.secondsite .co.uk/folder) then they get redirected to the subdomain www.secondsites.mainsite .co.uk/folder/
This is the subfolder in which the site is stored....
Now is the problem because the domain is redirecting to a subdomain or something else?
Thanks in advance!!
When people access the site using a straight forward domain (www.secondsite .co.uk) everything is fine, when they access a folder with a forwardslash on the end (www.secondsite .co.uk/folder/) everything is fine.
BUT when they access a folder without a forwardslash (www.secondsite .co.uk/folder) then they get redirected to the subdomain www.secondsites.mainsite .co.uk/folder/
This is the subfolder in which the site is stored....
Now is the problem because the domain is redirecting to a subdomain or something else?
Thanks in advance!!
Last edited by Perfectdarke : Jan 15th, 2008 at 5:15 am.
When you buy your domain you have to get it pointed to your web space and it is usually pointed to a file called index.php or something similar in the root. I think you need to point your second domain to another index file in the folder for your second site which is also in the root of your web space where the first site is. You can usually do this yourself if you have a control panel to access your web space.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Site Layout and Usability Marketplace
Other Threads in the Site Layout and Usability Forum
- Previous Thread: How Do I Start A Turnkey Travel Website?
- Next Thread: Web accessible directory


Linear Mode