0

I have a script on my page that checks the url for the word signing. If the word exists, it shows the signin form in a dropdown on page load. I'd like to avoid creating extra files on the server, so I was wondering how I could do this:

When the user is at either of these urls:

http://abramobile.com/signin http://abramobile.com/sign-in

Then direct the page back to the homepage, but leave 'signin' or 'sign-in' in the URL so that the script on my page detects that it's in the URL.

What would the mod_rewrite be to put in my .htaccess file? Thanks!

1 Answer 1

1

This should do it. This matches against the URI being exactly /signin or /sign-in and internally rewrite the URI to / so that that gets served.

RewriteRule ^sign-?in$ / [L]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.