XF 1.5 Convert URLs to Page Titles

Robru

Well-known member
On my forum, the external links will be converted properly, but not the internal. How can it get ?
 

Martok

Well-known member
Is there no conversion for internal links at all? Do they convert if posted on here?

Incidentally I note that both www and non-www versions of your site exist. You need to redirect one to the other. See point 19 of the FAQ.

Frequently Asked Questions
 

Martok

Well-known member
Disable all add-ons and switch to a default unedited style, then try again to see in internal links convert.
 

Robru

Well-known member
Disable all add-ons and switch to a default unedited style, then try again to see in internal links convert.
First I created a new style (no parent) with all the add-ons disabled. The internal links don't convert.
 

Martok

Well-known member
Just to confirm, you are talking about new internal links not converting? Existing internal links in posts that have previously been made won't auto convert.
 

Robru

Well-known member
I put this in the .htaccess:

Code:
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
Give always the www now.
 

Martok

Well-known member
I think this is one for the XenForo team then, you seem to have everything set correctly and have tested with add-ons disabled in an unedited default style.
 

Chris D

XenForo developer
Staff member
I've seen this before, I think, whereby some access rules are preventing the request from being routed in such a way. It's likely a configuration issue your host might need input on in the first instance.

Everything seems to be set up correctly so it might be worth seeing if they have any suggestions.
 

Brogan

XenForo moderator
Staff member
I have replied to your ticket.

As Chris has suggested above, it's something you will need to contact your host about - more information and how to debug the issue is available in the ticket.
 

Beanjam

Active member
Did anyone figure out why this doesn't work for internal links? I have a locally served clean test install and it's not working.
 

Brogan

XenForo moderator
Staff member
It's likely a sign that the server either isn't resolving its own domain as expected or (probably more likely) the web server isn't accepting requests for the domain on the IP it's directing to.
This will likely require server configuration changes.

It can probably be debugged a bit by making curl or wget requests for your domain from the command line.

It will probably require changing the server's host name (if it matches the domain and thus resolves to 127.0.0.1) or making sure the web server/vhost is listening on that IP

This is something you would need to contact your host about for support and resolution.
 

Beanjam

Active member
Why would it need to fetch the page content, can't the local title can be generated from the database?

Edit: I added the domain to the /etc/hosts file and now it's working.
 
Last edited:
Top