0

This is my code for pages.php but it gives me 500 Internal Server Error in wamp server for my all cms files. On the other hand, if i remove this .htaccess file, cms works fine. But i want a beautiful url for get variables. HELP PLSEASE

Options +FollowSymlinks
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^page_id/(\w+)$./pages.php?id=$1

Get variable in php

$page_id = $_GET["id"];
1
  • Where is your PHP code? Commented Sep 2, 2016 at 10:37

1 Answer 1

0

[Duplicate Question]

Please check below link :

.htaccess rewrite GET variables

Rewrite GET variables php

Access GET variables with PHP + .htaccess

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.