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"];
Sultan Aslam
  • 5,600
  • 2
  • 38
  • 44

1 Answers1

0

[Duplicate Question]

Please check below link :

.htaccess rewrite GET variables

Rewrite GET variables php

Access GET variables with PHP + .htaccess

Community
  • 1
  • 1
Ashish Detroja
  • 1,084
  • 3
  • 10
  • 32