Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Moving a hosted domain to CGI space
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Moving a hosted domain to CGI space
- « Previous
-
- 1
- 2
- Next »
Re: Moving a hosted domain to CGI space
28-11-2011 8:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Sorry, I'd forgotten where this thread started.
I've changed my root .htaccess to the following, and it works as you desire on my webspace. My root .htaccess file is now:
I use the hostname ccgi.domain.co.uk because www.domain.co.uk still points to homepages.
In the forum Administration Control Panel Force server URL settings is set to "Yes" and Script path is set to /phpBB3
Now if I browse to ccgi.domain.co.uk the address stays at that but the forum login page shows. If I add a / to that, the slash is removed and I end up in the same place. Browsing round the forum works but /phpBB3 never shows in the address bar. Example;
If I enter the address ccgi.domain.co.uk/phpBB3 without a slash the slash is added and again the forum login page shows. Browsing to the same place in the forum retains /phpBB3 in the address bar, like:
However /~username never appears, so it is possible to achieve that. Does your set-up effectively match this?
David
I've changed my root .htaccess to the following, and it works as you desire on my webspace. My root .htaccess file is now:
RewriteEngine On
RewriteBase /
# Fix trailing slash problem
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R,L]
# Point domain to /phpBB3 folder
RewriteCond %{HTTP_HOST} ^ccgi\.domain\.co\.uk$ [NC]
RewriteCond %{REQUEST_URI} !^/~username/phpBB3/
RewriteRule (.*) phpBB3/$1
I use the hostname ccgi.domain.co.uk because www.domain.co.uk still points to homepages.
In the forum Administration Control Panel Force server URL settings is set to "Yes" and Script path is set to /phpBB3
Now if I browse to ccgi.domain.co.uk the address stays at that but the forum login page shows. If I add a / to that, the slash is removed and I end up in the same place. Browsing round the forum works but /phpBB3 never shows in the address bar. Example;
http://ccgi.domain.co.uk/viewtopic.php?f=2&t=1&sid=.....#p3
If I enter the address ccgi.domain.co.uk/phpBB3 without a slash the slash is added and again the forum login page shows. Browsing to the same place in the forum retains /phpBB3 in the address bar, like:
http://ccgi.domain.co.uk/phpBB3/viewtopic.php?f=2&t=1&sid=.....#p3
However /~username never appears, so it is possible to achieve that. Does your set-up effectively match this?
David
David
Message 16 of 21
(350 Views)
Re: Moving a hosted domain to CGI space
29-11-2011 1:00 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Diverting a little to the side of the ongoing discussion and thinking about the behaviour when I used the ccgi.domain.co.uk address.
It puzzled me why this did not switch to the ccgi.username.force9.co.uk/phpBB3 style when the forum was entered, since that is set in the ACP by the Domain name and Script path combination. Previously I'd navigated the initial board without logging on. After I'd logged on the address bar did switch to that expected. So it seems different behaviour is experienced by not logged on (guest) and logged on users. This must mean different PHP code is traversed.
I've now changed the Domain name setting in the ACP to ccgi.domain.co.uk and Script path to /. With the rewrite rule I have in the root .htaccess the address bar doesn't show the folder name /phpBB3 but everything works - and the behaviour for guests and logged in users is consistent.
Just wondering if this diversion gives a clue to where your /~username comes from. Have you been logged into the forum when /~username appears.
David
It puzzled me why this did not switch to the ccgi.username.force9.co.uk/phpBB3 style when the forum was entered, since that is set in the ACP by the Domain name and Script path combination. Previously I'd navigated the initial board without logging on. After I'd logged on the address bar did switch to that expected. So it seems different behaviour is experienced by not logged on (guest) and logged on users. This must mean different PHP code is traversed.
I've now changed the Domain name setting in the ACP to ccgi.domain.co.uk and Script path to /. With the rewrite rule I have in the root .htaccess the address bar doesn't show the folder name /phpBB3 but everything works - and the behaviour for guests and logged in users is consistent.
Just wondering if this diversion gives a clue to where your /~username comes from. Have you been logged into the forum when /~username appears.
David
David
Message 17 of 21
(350 Views)
Re: Moving a hosted domain to CGI space
02-12-2011 11:20 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: spraxyt Sorry, I'd forgotten where this thread started.
I've changed my root .htaccess to the following, and it works as you desire on my webspace. My root .htaccess file is now:RewriteEngine On
RewriteBase /
# Fix trailing slash problem
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R,L]
# Point domain to /phpBB3 folder
RewriteCond %{HTTP_HOST} ^ccgi\.domain\.co\.uk$ [NC]
RewriteCond %{REQUEST_URI} !^/~username/phpBB3/
RewriteRule (.*) phpBB3/$1
I use the hostname ccgi.domain.co.uk because www.domain.co.uk still points to homepages.
In the forum Administration Control Panel Force server URL settings is set to "Yes" and Script path is set to /phpBB3
Now if I browse to ccgi.domain.co.uk the address stays at that but the forum login page shows. If I add a / to that, the slash is removed and I end up in the same place. Browsing round the forum works but /phpBB3 never shows in the address bar. Example;http://ccgi.domain.co.uk/viewtopic.php?f=2&t=1&sid=.....#p3
If I enter the address ccgi.domain.co.uk/phpBB3 without a slash the slash is added and again the forum login page shows. Browsing to the same place in the forum retains /phpBB3 in the address bar, like:http://ccgi.domain.co.uk/phpBB3/viewtopic.php?f=2&t=1&sid=.....#p3
However /~username never appears, so it is possible to achieve that. Does your set-up effectively match this?
David
Thanks for all the investigating you've done!
www.domain.info points to the CGI server, not homepages, but see my next post...
Message 18 of 21
(350 Views)
Re: Moving a hosted domain to CGI space
02-12-2011 11:27 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: spraxyt I've now changed the Domain name setting in the ACP to ccgi.domain.co.uk and Script path to /. With the rewrite rule I have in the root .htaccess the address bar doesn't show the folder name /phpBB3 but everything works - and the behaviour for guests and logged in users is consistent.
Just wondering if this diversion gives a clue to where your /~username comes from. Have you been logged into the forum when /~username appears.
David
I've deleted and rebuilt the forum and set up the ACP as you suggest above with .htaccess containing only the fix trailing slash lines in it and I've lost the ~domainname! Thank you!
Message 19 of 21
(350 Views)
Re: Moving a hosted domain to CGI space
02-12-2011 11:38 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Excellent news.
Thanks for the feedback.
David
Thanks for the feedback.
David
David
Message 20 of 21
(350 Views)
Re: Moving a hosted domain to CGI space
17-03-2012 1:43 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
See also topic "My new phpBB forum ---- myusername appears in browser address bar --- eeeek !" for more on the ~username and phpBB3 saga.
David
David
David
Message 21 of 21
(350 Views)
- « Previous
-
- 1
- 2
- Next »
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Moving a hosted domain to CGI space