Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

XenForo Friendly URLs

General questions about VestaCP
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
tonymaster21
Posts: 2
Joined: Tue Aug 14, 2018 2:19 am

Os: Debian 8x
Web: apache + nginx
XenForo Friendly URLs
  • Quote

Post by tonymaster21 » Tue Aug 14, 2018 2:22 am

Hi,

How would I go setting up friendly urls on an Xenforo forums with vesta cp and nginx?

I can't seem to figure out how to add the needed configuration to the current SSL nginx config generated by vesta.

This is what XF wants:

Code: Select all

location /xf/ {
	try_files $uri $uri/ /xf/index.php?$uri&$args;
	index index.php index.html;
}

location /xf/install/data/ {
	internal;
}
location /xf/install/templates/ {
	internal;
}
location /xf/internal_data/ {
	internal;
}
location /xf/library/ {
	internal;
}

location ~ \.php$ {
	try_files $uri =404;
	fastcgi_pass    127.0.0.1:9000;
	fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
	include         fastcgi_params;
}
Please help! Thank you
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: XenForo Friendly URLs
  • Quote

Post by ScIT » Tue Aug 14, 2018 6:23 am

Check the template files in /usr/local/vesta/data/templates/web, there you can create your own templates and choose them on vesta web backend.
Top

tonymaster21
Posts: 2
Joined: Tue Aug 14, 2018 2:19 am

Os: Debian 8x
Web: apache + nginx
Re: XenForo Friendly URLs
  • Quote

Post by tonymaster21 » Tue Aug 14, 2018 5:22 pm

Thanks for the reply, but that's not what I'm asking.

In order to have friendly urls with xenforo, I need to modify the nginx config for that domain.

The only issue is that I have the config generated by Vesta, and the one needed for xenforo.

I need to know how to put what is needed for xenforo into the one already made.
Top

spudy
Posts: 2
Joined: Sun Oct 20, 2019 2:00 am

Os: CentOS 4x
Web: apache
Re: XenForo Friendly URLs
  • Quote

Post by spudy » Sun Oct 20, 2019 2:07 am

tonymaster21 wrote: ↑
Tue Aug 14, 2018 2:22 am
Hi,

How would I go setting up friendly urls on an Xenforo forums with vesta cp and nginx?

I can't seem to figure out how to add the needed configuration to the current SSL nginx config generated by vesta.

This is what XF wants:

Code: Select all

location /xf/ {
	try_files $uri $uri/ /xf/index.php?$uri&$args;
	index index.php index.html;
}

location /xf/install/data/ {
	internal;
}
location /xf/install/templates/ {
	internal;
}
location /xf/internal_data/ {
	internal;
}
location /xf/library/ {
	internal;
}

location ~ \.php$ {
	try_files $uri =404;
	fastcgi_pass    127.0.0.1:9000;
	fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
	include         fastcgi_params;
}
Please help! Thank you
yes it is a proper way to use a frienddly urls Configuring friendly URLs
By default, XenForo does not enable friendly URLs due to the web server configuration requirements. To enable friendly URLs, log in to your admin control panel, and go to Options and then Search engine optimization (SEO). There are several options here which you may wish to configure:

Use full friendly URLs - Enabling this will change the structure of the URLs as mentioned at the beginning of this section. The requirements for this vary based on your web server and are discussed below.
Include content title in URLs - Disabling this option will make your URLs much shorter, but less friendly to humans as no keywords will be included in them. For example, with this option disabled, the example URL at the beginning of this section would become: http://www.example.com/threads/12345/ you need more infomation about xenforo ypu can visit the ** some google site - adv deleted**
Top

spudy
Posts: 2
Joined: Sun Oct 20, 2019 2:00 am

Os: CentOS 4x
Web: apache
Re: XenForo Friendly URLs
  • Quote

Post by spudy » Sun Oct 20, 2019 3:03 pm

tonymaster21 wrote: ↑
Tue Aug 14, 2018 5:22 pm
Thanks for the reply, but that's not what I'm asking.

In order to have friendly urls with xenforo, I need to modify the nginx config for that domain.

The only issue is that I have the config generated by Vesta, and the one needed for xenforo.

I need to know how to put what is needed for xenforo into the one already made.
Configuring friendly URLs
By default, XenForo does not enable friendly https://xenforo.asia/ due to the web server configuration requirements. To enable friendly URLs, log in to your admin control panel, and go to Options and then Search engine optimization (SEO). There are several options here which you may wish to configure:

Use full friendly URLs - Enabling this will change the structure of the URLs as mentioned at the beginning of this section. The requirements for this vary based on your web server and are discussed below.
Include content title in URLs - Disabling this option will make your URLs much shorter, but less friendly to humans as no keywords will be included in them. For example, with this option disabled, the example URL at the beginning of this section would become:
Top

bankzy
Posts: 6
Joined: Tue Apr 21, 2020 12:04 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: XenForo Friendly URLs
  • Quote

Post by bankzy » Tue Apr 21, 2020 12:05 pm

Did you get this working? I'm stuck trying to figure out how I'm suppose to get full friendly URLs working on xenforo (I have nginx also)
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password