2

http://www.naissancebebe.com/index.php?fc=module&module=prenoms&controller=search&gender=boy

I want to rewrite this using .htaccess to this way

http://www.naissancebebe.com/boy.php

so this query string "index.php?fc=module&module=prenoms&controller=search&gender=boy" add in .htaccess file.

here is my code

#RewriteEngine On
RewriteRule ^boy.php /index.php?fc=module&module=prenoms&controller=search&gender=boy [L]
8
  • is that a typo ? & gender=boy? with a space? Commented Nov 12, 2015 at 3:45
  • oh no its just mistake there is no space Commented Nov 12, 2015 at 3:46
  • what is the problem with your code? whats not working? Commented Nov 12, 2015 at 3:49
  • Starkeen when i enter naissancebebe.com/boy.php it not redirect to /index.php?fc=module&module=prenoms&controller=search&gender=boy [L] Commented Nov 12, 2015 at 3:50
  • Do you have any other rules in htaccess? Commented Nov 12, 2015 at 3:53

1 Answer 1

1

Try :

Options -Multiviews
RewriteEngine On
RewriteRule ^boy\.php$ /index.php?fc=module&module=prenoms&controller=search&gender=boy [QSA,NC,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.