Free Arcade Script
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Forum
Demo
Help
Search
Store
Gallery
Contact
Login
Register
Free Arcade Script
»
Forum
»
FAS Help
»
V2.x
»
Redirection from login to login/
Recent
« previous
next »
Print
Pages: [
1
]
Author
Topic: Redirection from login to login/ (Read 7161 times)
soulwebsites
Jr. Member
Posts: 71
Force: +0/-0
Redirection from login to login/
«
on:
April 21, 2012, 11:21:59 AM »
I am trying to get my links redirecting from
http://www.jamsite.co.uk/login
to
http://www.jamsite.co.uk/login/
I noticed when users go to the link without / it was failing
I found this site :
http://www.htaccessredirect.net/index.php
and tried using the .htaccess as follows
RedirectMatch 301
http://www.jamsite.co.uk/login
(.*)
http://www.jamsite.co.uk/login//
$1 - but this didnt work
I tried a few others but it just put my site in a loop
It happens on the following pages (might be more)
www.jamsite.co.uk/login
www.jamsite.co.uk/signup
www.jamsite.co.uk/newest
www.jamsite.co.uk/links
If there is an easier way than using htaccess then thats fine this is just something I came across
Logged
http://www.jamsite.co.uk
Adam LaCombe
Sr. Member
Posts: 433
Force: +17/-0
Re: Redirection from login to login/
«
Reply #1 on:
April 30, 2012, 12:37:05 PM »
I'm not really sure what you're trying to do.. could you explain more?
It looks to me that you want to redirect a url to the same exact url... in that case, yes it will put it in a loop.
Logged
Please visit my blog
soulwebsites
Jr. Member
Posts: 71
Force: +0/-0
Re: Redirection from login to login/
«
Reply #2 on:
April 30, 2012, 01:33:08 PM »
sure
this is with SEO links
what it was I noticed if i tried to go to the login page without the / on the end it would come up with a page not found error so all i wanted to do was to make sure if you go to login or login/ you would go to the same page - i didnt want to loose out on hits/members because they managed to click on a link without / on the end
Example:
Link works :
http://www.jamsite.co.uk/login/
Link Doesnt work:
http://www.jamsite.co.uk/login
Logged
http://www.jamsite.co.uk
Adam LaCombe
Sr. Member
Posts: 433
Force: +17/-0
Re: Redirection from login to login/
«
Reply #3 on:
May 08, 2012, 09:22:21 PM »
Try this:
RewriteRule ^([^/]*)[/]??$ /index.php?action=$1 [L]
Logged
Please visit my blog
soulwebsites
Jr. Member
Posts: 71
Force: +0/-0
Re: Redirection from login to login/
«
Reply #4 on:
May 19, 2012, 02:48:20 PM »
I applied what that but then my set came up with error 500 i messed around with it for a bit but nothing worked.
Logged
http://www.jamsite.co.uk
soulwebsites
Jr. Member
Posts: 71
Force: +0/-0
Re: Redirection from login to login/
«
Reply #5 on:
June 17, 2012, 10:10:00 AM »
Hi Adam just through id post to say I got this working from a tutorial on that 9lessons website you sent me for the facebook login code.
just in case someone else would like this add these 2 lines to your .htaccess file
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?action=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?action=$1
Logged
http://www.jamsite.co.uk
Print
Pages: [
1
]
« previous
next »
Free Arcade Script
»
Forum
»
FAS Help
»
V2.x
»
Redirection from login to login/