0

I have a simple rewrite that works on localhost but not on my server. I'm trying to rewrite

www.website.com/arrangements/garden

to

www.website.com/arrangements.php?link=garden

and the code I have is

RewriteEngine On
RewriteRule ^arrangements/(.*)/?$ arrangements.php?link=$1 [NC,L]

But what I get on the server is only arrangements.php. The query string link is not present. I've tried everything I could think of and contacted hosting support as well, they got nothing.

Any ideas?

1
  • 1
    Disable MultiViews (via Options directive), it often interferes with rewriting. Commented Jul 3, 2017 at 8:00

1 Answer 1

1

Use this,

Options -Multiviews
Options +FollowSymLinks 
RewriteEngine On
RewriteRule ^arrangements/(.*) arrangements.php?link=$1 [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.