Jump to content
Sign in to follow this  
Sevarf2

fake subdomain

Recommended Posts

Hello guys,

is there a way to manage some fakes subdomains like pages in PW?

I mean:

sub.domain.com => domain.com/folder

Maybe via htaccess...

Thanks

Share this post


Link to post
Share on other sites

Look at my multisite module, which does exactly that.

Share this post


Link to post
Share on other sites

After install i got this:


Warning: strpos() [function.strpos]: Empty delimiter in /home/disinibi/public_html/site/modules/Multisite.module on line 40

Notice: Undefined index: subdomains in /home/disinibi/public_html/site/modules/Multisite.module on line 87

Share this post


Link to post
Share on other sites

mmm I don't think this is the solution for my case. I already have some pages and now i want to change the url of this pages into subdomains (also with their subpages), in your module i have to create the page with the same name of the subdomain in the root...

Share this post


Link to post
Share on other sites

Just edit the name of your subpage to match the subdomain? If that is not possible in your case, then you need another solution. Maybe fork the module for your needs?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Shailaja
      I have a subdomain. Now i dont to use that subdoamin so i have deleted but if I open the subdomain it is redirecting to 404 page.
      Thank you in advance.

    • By Entice
      Hi.
      I'm trying to figure out what might be the best approach when using PW for your CMS, but needing access custom tables. I know you can query your custom tables, so that's not my question here. What I'm trying to figure out is if I should separate an application from PW.
      Out of the box, the application I will be using has its' own tables and the app is built towards using those tables, so I don't want to rewrite the app to use PW, seems too much work.

      I do however want to use PW for the CMS and frontend where my users can add/update rows in those custom tables. Now the app itself can be connected from various devices on a handful of ports, so I'm expecting a high volume of requests to the app to a point where I'm seriously considering a dedicated server for this project.
      Would it be beneficial to create a whole subdomain just for the app and use PW to query the db? Or should I keep the 2 in the same db? Pros/Cons would be great here.
      Thanks!
    • By John W.
      Summary: If I have a site sitting on a server called testing.com, then on the server change it to mycompany.com, do I have to modify any settings in ProcessWire?
      After building several processwire for clients, the one question that I haven't had is about moving a processwire site from an old (temporary) domain to a new domain.
      For instance, I typically setup development sites for clients and register a temporary domain (and lock with a password). For instance, thee client can go test.com and get all their content finalized, change wording, add news, swap out photos -- everything to make the site production read.  
      Next, on my hosting account I can have testing.com renamed to theircompany.com - and change the nameservers.
      A simple question here. If I have a hosting company rename the account from testing.com to theircompany.com, change my nameservers whereas going to theircompany.com loads the production site, Is there anything I need to change in the processwire configuration or in the PW database?
      In the past, I've just manually copied the site, and fresh-installed PW, and imported the data. Seems like a lot of hassle.
      I have a second part question about updating the PW core, however, after consideration I'll post it as a new topic.
    • By Dennis Spohr
      Hi all,
      I have problems to keep my session on different subdomains (including www).
      I've set the following config:
      $config->sessionCookieDomain = '.mydomain.net'; $config->sessionCookieSecure = false; But it doesn't work, I always loose the session when I switch between www.mydomain.net and example.mydomain.net.
      Could it be because both of them have a different SSL-Certificate? (https)
      Thanks for any help!
      Dennis
    • By r2d2
      Hi Everyone,
      I'm trying to figure out how to forward all subdomains to a single domain.
      For example, if the user goes to ...
      http://sharespost.com).
      I saw some similar posts about this but nothing concrete.
      Anyone have any thoughts? Any help is appreciated. 
      Thanks.
×
×
  • Create New...