× Here you can get community support related to ReDJ.

redirect subdomains to a url query part

  • darkhoros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 9 months ago #5915 by darkhoros
Replied by darkhoros on topic redirect subdomains to a url query part
Hi,
Ok, here it is.

source url
mivida.newcairorealestate.info NOTICE: subdomain"mivida"

target url:
mivida.newcairorealestate.info/index.php/component/joomd/real-estate-egypt/search-results?field_33[0]=mivida
NOTICE: mivida at the url end, and I kept the host part at the beginning. I took the subdomain name "mivida" and used it after the ?field_33[0]= , but I need to keep the subdomain "mivida" in the source url as-is.

Is that clear? or do you need me to try to explain more?
Thank you for your time.
Regards.

Please Log in or Create an account to join the conversation.

More
7 years 9 months ago #5916 by admin
Replied by admin on topic redirect subdomains to a url query part
From URL: ^https?://mivida\.newcairorealestate\.info/?$
To URL: {scheme}://{siteurl}/index.php/component/joomd/real-estate-egypt/search-results?field_33[0]=${b}
Requesto only: false

Placeholders are the same.

Please Log in or Create an account to join the conversation.

  • darkhoros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 9 months ago #5918 by darkhoros
Replied by darkhoros on topic redirect subdomains to a url query part
Ok, your last reply is good.
BUT i need a general case from URL so I am testing with something like

^https?://[a-zA-Z0-8-]\.[a-zA-Z0-8-]\.[a-zA-Z0-8-]/?$
But can't get it to work, I tried without the $ at the end, but also not working, can you help me with this, thank you.

Please Log in or Create an account to join the conversation.

  • darkhoros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 9 months ago #5919 by darkhoros
Replied by darkhoros on topic redirect subdomains to a url query part
Fuxed it.
I am now using this from URL

^https?://[a-zA-Z0-8-]+\.[a-zA-Z0-8-]+\.[a-zA-Z0-8-]+/?$

Working perfectly.
Thank you.

Please Log in or Create an account to join the conversation.

More
7 years 9 months ago #5921 by admin
Replied by admin on topic redirect subdomains to a url query part
U're welcome.

Please Log in or Create an account to join the conversation.

Time to create page: 0.139 seconds