I need to redirect all urls with dash to a specific page.
For example:
site.com/this-url to site.com/page.php?url=this-url
RewriteRule
RewriteRule ^(.+-.+)$ page.php?url=$1
just hang http. No response.
What is wrong and how it can be done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this instead, you may have an infinite loop.
Now:
QSAflags appends all the query parameters from the original request to the rewritten requestBflag escapes the backreference$1so that it can safely be used as a query paramaterLflag is not strictly necessary, but avoids evaluating other rewrite rules when this one is matched