Logging in - website on a subdomain

Permalink Browser Info Environment
When I have a website on a subdomain, logging in takes me to "Page Not Found"

I don't know whether this is due to Multiple Domains or not, hoping you can help.

Here's an example:

Logging in at

http://wsa1.technicskeyboards.com/...

Takes me to:

http://wsa1.technicskeyboards.com/.technicskeyboards.com/...

Which gives "Page not Found".

Many thanks,
Mike

Type: Discussion
Status: Resolved
designserve
View Replies:
Mainio replied on at Permalink Reply
Mainio
Have you checked the "allow logging in" checkbox from the common settings page?

http://www.concrete5.org/marketplace/addons/multiple-domains/docume...
designserve replied on at Permalink Reply
designserve
Yes I have that one ticked (but I do my own edits from the main domain as suggested). When users log in they are redirected to the page not found mentioned above. Maybe it's not your code though, I'm using the popup login addon.
Mainio replied on at Permalink Reply
Mainio
I suggest trying out the normal login page and then seeing if it works normally.
designserve replied on at Permalink Reply
designserve
Thanks I've just tried that and it also redirects to the Page not Found.
designserve replied on at Permalink Reply
designserve
Correction - the normal login box redirects to page not found. The normal login page directs to the users profile as intended.
Mainio replied on at Permalink Reply
Mainio
OK, what is the URL after the redirection?
designserve replied on at Permalink Reply
designserve
http://wsa1.technicskeyboards.com/.technicskeyboards.com/

Note the dot after the /
Mainio replied on at Permalink Reply
Mainio
I assume you have applied the navigation helper override on your site?

https://www.concrete5.org/marketplace/addons/multiple-domains/docume...
Mainio replied on at Permalink Reply
Mainio
And if yes, could you try whether it works without it?
designserve replied on at Permalink Reply
designserve
I had an old version in place. When I added the new version you pointed me to it didn't fix the problem.

When I tried without the helper, it redirects to the correct page (home page of the subdomain)
Mainio replied on at Permalink Reply
Mainio
I did a small update to the navigation helper override instructions, could you try with the new code?
designserve replied on at Permalink Reply
designserve
Here's the redirection I get with the new code:

http://wsa1.technicskeyboards.com/.technicskeyboards.com/wsa1/...

Looks like you are going in the right direction
designserve replied on at Permalink Reply
designserve
This is just a reminder that you had to change something in the htaccess on my site to make it work.

I'm not sure what you changed but I thought I had better remind you in case it is different for other sites.
Mainio replied on at Permalink Reply
Mainio
Can you try renaming the page URL slug to something else than /wsa1?

Like /wsa1site
designserve replied on at Permalink Reply
designserve
Thanks I've renamed it to wsa1home and that seems to work.

I try to avoid using the same url slugs but sometimes forget as my sites have a few thousand pages now. I also experienced problems with forum pages mainly because of the "excluded words" list. So I've deleted all the excluded words. Members often use similar headings in their posts which can become a problem in the forums.

Thanks for your help, shall I just leave it named that way now?

Thanks again,
Mike
Mainio replied on at Permalink Reply
Mainio
Yeah, I think that should keep the problem from replicating.
designserve replied on at Permalink Reply
designserve
Thank you!

Extreme support as always, I'm very grateful.

...and I'll be getting your 5.7 version in the near future.

concrete5 Environment Information

# concrete5 Version
5.6.3.3

# concrete5 Packages
Add Multiple Pages (2.1.1), Advanced Page List (1.0.3), Backup Voodoo (2.3.5.3), Black Knight (1.2.6), Blocks by AJAX (2.3.0.5), Bookmarks (1.1.4), Bootstrap (3.1.1.4), Cache Free Content (1.1.0.5.6.3.3), Dashboard Maximizer (2.0.4), Discussion (1.8.6), Easy Tables (2.0.1), File List Pro (1.3), File With Description (1.1), FlexSlider (2.2.0.5), Front End Filemanager (1.1), Front End File Uploader (2.2.2), HTML5 Audio Player Basic (1.1.6), HTML5 Audio Player Pro (1.3.0.2), Iframe (1.0), Instant CSS (1.1), Lerteco Membership (2.2.2.1), Login (1.1.1), Magic Data (2.10.1), Magic Data Forms (1.2), Magic Data Symbols1 (2.7.9), Magic Data Templates1 (2.2), Magic Heading (1.3), Magic Tipple (1.6), Mailing List (2.54), Multiple Domains (1.4.9), Multiple Domains Debug (0.1), Next & Previous (1.02), Paypal Cart System Pro (1.1), Paypal Donations Box (1.0.1), Popup Login (1.0.5), Pro Blog (12.4.4), Rigid Light - Theme (2.1), Sapphire (1.5.0), Simply Clean - Theme (2.1), Sisimizi's Download Folder (1.0), Site Notifications (1.0.1), Slate Theme (1.5.3.1), Sortable Fancybox Gallery (1.17), Thumbs Up (1.4.1), tnSpacer (1.3), Toolbar Quick Links (1.2.0.1), Uber List (1.8.1), Universal Content Puller (1.4.4), Universal Content Puller Sources1 (1.4), ViewPort (1.0), Whitespace Theme (1.2), Zoom Image (1.0.5).

# concrete5 Overrides
blocks/content, blocks/discussion_guestbook, blocks/discussion_post_list, blocks/login, blocks/multiple_domains_autonav, blocks/next_previous, blocks/problog_list, blocks/user_badges, controllers/single_pages, elements/tracking.php, helpers/navigation.php, helpers/spellchecker.php, css/discussion.css, libraries/page_cache, libraries/request.php, single_pages/login.php, single_pages/page_not_found.php, single_pages/register.php, single_pages/maintenance_mode.php, single_pages/profile, themes/slate_custom, themes/slate_multiple, themes/slate_technics, themes/viewport_custom, themes/whitespace_custom, themes/slate_custom_black, themes/slate_KN7000, themes/slate_123top

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - Off
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Only when manually removed or the cache is cleared.

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.4.44

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, shmop, SimpleXML, soap, SPL, SQLite, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.