A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Rewrite the login link
Jul 22, 2010
3:42 pm
Member
Forum Posts: 263
Member Since:
Jun 1, 2009
Offline

Hi guys, I am trying to change the way the login/register links look.

Instead of  http://site/wp-login.php?actio…..view=forum

I want it to be http://site/login

So far, I tried to make adjustments in the htaccess but to no avail.

The changes I tried went like this:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /site.com/

RewriteRule ^login http://site/wp-login.php?actio.....view=forum
Jul 23, 2010
8:09 am

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

well, the wp-login.php file is obviously a wp file and not sp…  and the change you are attempting would only affect forum login… the standard wp login page would still act as normal, so you would want to be more generic…

but you could take a look at our internal wp rewrite rules that we do in function sfg_set_rewrite_rules() in file sf-loader-global.php and be able to effect the redirection in there…

Jul 23, 2010
8:51 am
Member
Forum Posts: 263
Member Since:
Jun 1, 2009
Offline

Mr Papa said:

well, the wp-login.php file is obviously a wp file and not sp…  and the change you are attempting would only affect forum login… the standard wp login page would still act as normal, so you would want to be more generic…

but you could take a look at our internal wp rewrite rules that we do in function sfg_set_rewrite_rules() in file sf-loader-global.php and be able to effect the redirection in there…


I only care if it affects the forum login since I do not have anyone (except me) who goes to the wp login.

I am guessing that the forum uses the wp login but masks it with the "&view=forum".

The change I am attempting did not affect anything (forum or wp login) all it did was bring up a page not found when I went to http://site.com/login or http://site.com/forum/login

Jul 23, 2010
9:33 am

SP Master
Forum Posts: 22183
Member Since:
Nov 9, 2008
Online

Are you not doing this back to front. Shouldn't you be changing the login url in the forum login and registration panel to your desired url and then adding a rewrite rule to redirect that to the WP login url?

Yellow Swordfish
Jul 23, 2010
9:42 am
Member
Forum Posts: 263
Member Since:
Jun 1, 2009
Offline

Yellow Swordfish said:

Are you not doing this back to front. Shouldn't you be changing the login url in the forum login and registration panel to your desired url and then adding a rewrite rule to redirect that to the WP login url?


Very good point… but I changed the Login URL to http://site.com/login via the forum login and registration panel   and then I added this to my htaccess:

 

RewriteRule ^wp-login.php?action=login&view=forum http://site.com/login/

But still no no avail…

Jul 23, 2010
9:54 am
Member
Forum Posts: 263
Member Since:
Jun 1, 2009
Offline

sorry for all the edits Embarassed

Jul 23, 2010
9:59 am

SP Master
Forum Posts: 22183
Member Since:
Nov 9, 2008
Online

Well it can be done of course but my .htaccess knowledge and regexp knowledge is too limited.

Yellow Swordfish
Jul 23, 2010
10:00 am
Member
Forum Posts: 263
Member Since:
Jun 1, 2009
Offline

Yellow Swordfish said:

Well it can be done of course but my .htaccess knowledge and regexp knowledge is too limited.


Just really want to get rid of the wp-login part, no matter what I have to do.

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: Yellow Swordfish, Conrad_Farlow, lisalew, Jason Clark, Superfast
70 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 501

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2624

Members: 7354

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10877

Posts: 79454

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22180), Mr Papa (23688)