Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
GriefCode Posted August 31, 2015 Posted August 31, 2015 Use friendly URLsACP -> System -> Search Engine OptimizationEnable friendly & rewrite URL, download the .htaccess, put it in your suite root folder and then add AllowOverwrite Allto your apache configuration of the forum directory.Restart apache and your done.Regards
Brian K. Posted December 20, 2015 Posted December 20, 2015 Whats' the best way to accomplish this under nginx? I tried the following in my nginx configuration and it causes the links to download when I click on them: # nginx configuration location / { if (!-e $request_filename){ rewrite \.(js|css|jpeg|jpg|gif|png|ico)(\?|$) /404error.php break; } if (!-e $request_filename){ rewrite ^(.*)$ /index.php break; } }
MADMAN32395 Posted December 20, 2015 Posted December 20, 2015 7 minutes ago, Brian K. said: Whats' the best way to accomplish this under nginx? I tried the following in my nginx configuration and it causes the links to download when I click on them: # nginx configuration location / { if (!-e $request_filename){ rewrite \.(js|css|jpeg|jpg|gif|png|ico)(\?|$) /404error.php break; } if (!-e $request_filename){ rewrite ^(.*)$ /index.php break; } } as for rewrite, this is what one ngnix forums uses. location / { index index.html index.php; try_files $uri $uri/ /index.php?q=$request_uri; }
RevengeFNF Posted December 20, 2015 Posted December 20, 2015 I just use this and it works: location / { try_files $uri $uri/ /index.php; }
Brian K. Posted December 20, 2015 Posted December 20, 2015 Thanks but both of those return 404. I upgraded from VB 4.2 + VBSEO to IPS 4 so I have a rewrite in there as well, not sure if that is causing the problem: rewrite [^/]+\/([0-9]+)-[^/]+\.html https://www.techinferno.com/showthread.php?t=$1 redirect;
Recommended Posts
Archived
This topic is now archived and is closed to further replies.