Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6641941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:52:15+00:00 2026-05-25T23:52:15+00:00

A site I am currently working with allows users to upload images onto a

  • 0

A site I am currently working with allows users to upload images onto a page together with some text they write.
like a blog or logbook.

I use tinymce to let them edit the text and add images.

due to the urlrewriting module I work on I have to change the img src for each of the images that is added to the page.
from

"/images/images_1/....jpg" to http://user1.mydomain.com/images/images_1/

“_1” is the id of the user account.
and each user has their own subdomain.
and each page is later viewed from a rewrited url like:

user1.mydomain.com/2011/09/pagename.aspx

so, the problem
when using url rewrite the path for images is not working. That’s why I have to change the path inside each text document.

As I see it, I have 3 alternatives:

1: I replace the img src string when the text is saved, used with asp.net c#. this is easy BUT! If the user wants to change their subdomain nmame I have to update each and every one of the pages for that user inside the database. and replace the img src.

2: I use replace function in mySQL for each page visit and replace the code more dynamically.

3: I use replace function in asp.net for each page visit.

alt. 2 & 3 is not good, a because it is possible to view a lot of pages at the same page. (like a blog, a whole month on one page, lot of page entries) and I think that the replace function eats hardware?

So, what do you think about this? what should I choose?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:52:16+00:00Added an answer on May 25, 2026 at 11:52 pm

    I solved this by adding another subdomain.

    images.mydomain.com
    

    no need for change if user changes his username 😀

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a site that allows users to signup up. I'm currently using
Im currently working on a site that you can upload large files.. on local
I'm currently working on a jQuery script that will translate the site's text into
In one of the ASP .Net site we are currently working we have a
Currently working on a site built in Django and i'm getting an issue when
I'm currently working on a little site for my family. One of the things
I'm currently working on a auction site where I need to display a countdown
I'm currently working on an intracompany web site which will be viewed on cell
I'm currently working on an ASP.NET web-site. In one of my pages, I had
I'm currently working on a little html/js site and my current goal is to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.