Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to hide or remove port :80 from the url
ragu
New
I have shared hosting account, LEMP (i.e nginx) powered with cpanel
I've placed the forum in sub-folder in a sub-domain
ex. http://en.domain.com/forum
The homepage of the forum works fine, now I have to fix couple of issues
- When I requested for password reset for my login, I received the password reset link like this, next to my domain extension :80 shows there
http://en.domain.com:80/forum/entry/passwordreset/x/xyza3
- And my category Url shows like this
Category Url: http://en.domain.com:80/forum/category/general/
even if I create new category, :80 stands as default
Kindly help me resolve this issue.
Thanks
Tagged:
0
Comments
do you notice :80 in your config.php anywhere? if so, what statement.
what version of vanilla are you using? (as usual it is a good idea to post this in your opening post, so people can effectively help you wit the version you are using.).
I sure wish the admins of the forum would put the message at the top. It actually did help, believe it or not.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
also you could be inadvertently adding the port 80 in your .htaccess
post your .htaccess, if port 80 is not shown anywhere in your config.php
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine
Thanks for the reply and suggestion on the posting.
I'm using Vanilla 2.1b2, no I didn't see :80 anywhere, another thing I would like to add, I see the domain like this inside the dashboard, but when I click this hyperlink, it gets corrected, not sure if the browser does that.
http://en.domain.com:80/forum/category/general/
And, when I create category and the topic in that category doesn't follow the category slug
http://en.domain.com:80/forum/category/general/4/test-1
instead, it just creates with /discussion slug
http://en.screenwriters.in/forum/discussion/4/test-1
so its not in your config.php
can you post your .htaccess
I don't know of any other things that would add :80 besides a config statement in your config or the .htaccess or the routes in the dashboard.
short of you providing a listing your enabled plugins, a sanitized config.php (remove passwords, salts, mail info, google, twiiter, etc) and a listing of your .htaccess and a snapshot of your routes, I don't really see a way for anyone to give you a meaningful answer and stating if your forum is embedded in some other software.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Original
If you modify this file then change the above line to: # Modified
RewriteEngine On
# Certain hosts may require the following line.
# If vanilla is in a subfolder then you need to specify it after the /.
# (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
# RewriteBase /forum
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
This is my.htaccess
No plugins enabled. I remove passwords, salts, mail info.
http://en.domain.com:80/forum/category/general/
what happens if you use,
http://en.domain.com/forum/category/general/
try logging out. and just go to your forum using a link without the :80 in it.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
This is actually a bug.
Ether
HTTP_HOST
orHTTP_X_FORWARDED_HOST
contains the port.follow this
add to top of .htaccess
create alter_host.php file in vanilla folder
grep is your friend.
I appear to be having a similar problem to ragu, and tried x00's fix as above, however when trying to reach localhost/vanilla I'm seeing "Parse error: syntax error, unexpected 'if' (T_IF) in C:\wamp\www\vanilla\alter_host.php on line 5".
sorry there is an error in my code, fix:
grep is your friend.
No worries. Thanks for your help. Unfortunately localhost/vanilla is still a blank page for me, though I can see my forum at http://localhost/vanilla/index.php?p=/discussions
http://stackoverflow.com/questions/2384423/index-php-not-loading-by-default
grep is your friend.