Hello, Im having a problem with thread and profile urls looking messy compared to what they used to.
For a profile for example the url is mydomain.com/member.php?action=profile&uid=1
whereas I want it to be mydomain.com/user-1.html
and the same with threads, I have mydomain.com/showthread.php?tid=1&pid=1#pid1
But i want mydomain.com/thread-1.html
anyone know how to fix?
If you haven't yet, rename htaccess.txt to just .htaccess without an extension. Then make sure you have Search Engine Friendly Urls enabled. Admin CP->Config->Server & Optimization Settings. it is the first setting on that page.
(2014-06-26, 01:01 PM)dragonexpert Wrote: [ -> ]If you haven't yet, rename htaccess.txt to just .htaccess without an extension. Then make sure you have Search Engine Friendly Urls enabled. Admin CP->Config->Server & Optimization Settings. it is the first setting on that page.
I did what you said and it did work. However, now I get I a '404' not found error everytime I click a thread or member profile?
Make sure you have this in your .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]
RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]
RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]
RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]
RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]
RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]
RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]
<IfModule mod_env.c>
SetEnv SEO_SUPPORT 1
</IfModule>
</IfModule>
Can you please post the contents of your .htaccess file?
Get the plugin Google SEO.
Link:
http://mods.mybb.com/view/google-seo
You can activate a feature so the member profiles & threads will look like:
yourdomain.com/User-1
yourdomain.com/Thread-Welcome-To-The-Forum