0

I've successfully rewritten

RewriteRule ^alphabetical alpha.php

So that when anyone comes to www.example.com/alphabetical it loads alpha.php. However, I'm having problems creating a rule so that when someone comes to www.example.com/alphabetical/a it should loa alpha-a.php. This is the rule I've tried that isn't working:

RewriteRule ^alphabetical/a alpha-a.php

1 Answer 1

2

put your second more specific rule on top of the the first rule. RewriteRule ^alphabetical/a alpha-a.php RewriteRule ^alphabetical alpha.php

further, you can use a $ at the end to denote an end of url, saying urls ending with 'a'.

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.