close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Sub Domains and absolute urls for images

Thread began 4/30/2014 9:50 am by m79618373377 | Last modified 4/30/2014 11:18 am by Jason Byrnes | 1090 views | 5 replies |

m79618373377

Sub Domains and absolute urls for images

I have a primary domain and sub domain. I have setup the sub domain in Parallels as m.mydomain.com for example as this will be the mobile version of the same website.

I want to use the same database and CMS for both with the admin being on the Primary domain. Although this works fine, the problem I have is any pictures uploaded to the primary domain within Admin use a relative URL. This equates to the sub domain having a broken link where any picture should be.

Is there anyway that Power CMS can display absolute URLs or alternatively code I could put on the sub domain webpage that displays the CMS copy which takes any relative URL and converts this into an absolute URL?

Any help appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

No, the sub domain will not be able to access images that are part of the primary domain.

The sub domain starting point is the folder assigned to the sub domain, any folders bellow that cannot be accessed b y the subdomain, they are not visible to the subdomain.

Sign in to reply to this post

m79618373377

Thanks for the reply.

So basically Power CMS can use the same database for primary and sub domains but not the same images.

In effect, there is no way of using absolute URLs for images in Power CMS other than actually going into the source code in admin and typing in the domain URL in front of the relative URL. Is this correct?

Obviously when I do this, the images then show in the sub domain website.

Sign in to reply to this post

Jason ByrnesWebAssist

"other than actually going into the source code in admin and typing in the domain URL in front of the relative URL. Is this correct?"


Yes, that is correct.

Sign in to reply to this post

m79618373377

ok thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...