MyBB Community Forums

Full Version: Change index.php to portal.php but have it as Home
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
(2012-12-23, 12:11 PM)aventura Wrote: [ -> ]Why do you want the URL for users to just be the standard forum URL? Also, change it to the default one: "User-{URL}" and see if it fixes the issue. If it doesn't than something else is incorrect and you might be able to have that option.

May I suggest starting a new thread for this Google SEO discussion if the above doesn't fix it (or if it does and you still want it to just be: "URL")

Now it says this; [Image: L0Zwh.png]
And yes i want it to just be url.
Add that line to your ".htaccess" and that will clear up that issue. Once you have done that, try your original setting and see if it is fixed.

If it isn't, start a new discussion over at http://community.mybb.com/forum-72.html (I think thats the right one) as I don't know enough about the workings of the plugin to set it up correctly so you can have just "{URL}" as the setting for user but I don't see why you want it that way.
(2012-12-23, 01:34 PM)aventura Wrote: [ -> ]Add that line to your ".htaccess" and that will clear up that issue. Once you have done that, try your original setting and see if it is fixed.

If it isn't, start a new discussion over at http://community.mybb.com/forum-72.html (I think thats the right one) as I don't know enough about the workings of the plugin to set it up correctly so you can have just "{URL}" as the setting for user but I don't see why you want it that way.

Where would I add that line of code?

Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
#   MediaTemple, it is known to cause random Internal Server
#   errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
	# Turn off mod_security filtering.
	SecFilterEngine Off

	# The below probably isn't needed, but better safe than sorry.
	SecFilterScanPOST Off
</IfModule>

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
#   the setting enabled in the Admin CP and you have this file
#   named .htaccess
#
RewriteEngine on

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://modzworld.x10.mx/$1?$2 [L,QSA,R=301]

# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404

# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

# Google SEO URL Forums:
RewriteRule ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]

# Google SEO URL Threads:
RewriteRule ^Thread\-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]

# Google SEO URL Announcements:
RewriteRule ^Announcement\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]

# Google SEO URL Users:
RewriteRule ^([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]

# Google SEO URL Calendars:
RewriteRule ^Calendar\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]

# Google SEO URL Events:
RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]

	<IfModule mod_env.c>
		SetEnv SEO_SUPPORT 1
	</IfModule>
</IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
	AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
</IfModule>
Replace the current rule that is already there for users. i.e. replace this:
# Google SEO URL Users:
RewriteRule ^([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]
with the line given in the warning/error message you posted.
(2012-12-23, 03:43 PM)aventura Wrote: [ -> ]Replace the current rule that is already there for users. i.e. replace this:
# Google SEO URL Users:
RewriteRule ^([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]
with the line given in the warning/error message you posted.

Ok, now when I go to there profiles, it says User-{URL}
It's supposed to be {url} not {URL} in the settings.
(2012-12-23, 04:46 PM)frostschutz Wrote: [ -> ]It's supposed to be {url} not {URL} in the settings.

oh, that makes sense right?
now I have this;
[Image: xZ8a1.png]
Every type of URL must have something to distinguish it from every other type of URL. Otherwise it won't know if Thread-Foobar is a thread with subject foobar, or a user named "thread foobar", and one or the other will stop working.
(2012-12-23, 05:02 PM)frostschutz Wrote: [ -> ]Every type of URL must have something to distinguish it from every other type of URL. Otherwise it won't know if Thread-Foobar is a thread with subject foobar, or a user named "thread foobar", and one or the other will stop working.

So I gotta make all of them have url at the beggining?
(2012-12-23, 05:18 PM)MYBB GHOST Wrote: [ -> ]
(2012-12-23, 05:02 PM)frostschutz Wrote: [ -> ]Every type of URL must have something to distinguish it from every other type of URL. Otherwise it won't know if Thread-Foobar is a thread with subject foobar, or a user named "thread foobar", and one or the other will stop working.

So I gotta make all of them have url at the beggining?
No you need to make each setting different so the plugin can distinguish between a user or a thread etc. as frostschutz said.

Also apologies for the {URL} over {url} confusion
Pages: 1 2 3 4