{"id":679,"date":"2012-12-14T15:52:44","date_gmt":"2012-12-14T15:52:44","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=679"},"modified":"2022-02-17T07:14:03","modified_gmt":"2022-02-17T07:14:03","slug":"rewrite-rules","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/htaccess\/rewrite-rules","title":{"rendered":"Rewrite rules"},"content":{"rendered":"<h4>\nGood Resources For Example Rules<br \/>\n<\/h4>\n<p>\n<a href=\"https:\/\/gist.github.com\/ScottPhillips\/1721489\">https:\/\/gist.github.com\/ScottPhillips\/1721489<\/a>\n<\/p>\n<h4>\nBefore the rules<br \/>\n<\/h4>\n<pre>\r\n<code>\r\nOptions +FollowSymLinks\r\nRewriteEngine On\r\nRewriteBase \/\r\n<\/code><\/pre>\n<h4>\nNo Parameters Example<br \/>\n<\/h4>\n<pre>\r\n<code>\r\nRewriteRule ^groups$ groups.php [L]\r\n<\/code><\/pre>\n<h4>\n1 Parameter Example<br \/>\n<\/h4>\n<pre>\r\nRewriteRule ^flips\/([^\/]*)$ flips.php?fid=$1 [L]<\/pre>\n<div>\nConverts this URL format:\n<\/div>\n<pre>\r\nhttp:\/\/www.mydomain.com\/flips\/996803385327<\/pre>\n<div>\nTo this actual php page\n<\/div>\n<pre>\r\nhttp:\/\/www.mydomain.com\/flips.php?fid=996803385327<\/pre>\n<p>\n&nbsp;\n<\/p>\n<h4>\n2 Parameter Example<br \/>\n<\/h4>\n<pre style=\"font-size: 10px;\">\r\nRewriteRule ^flips\/([^\/]*)\/([^\/]*)$ flips.php?fid=$1&amp;valueb=$2 [L]<\/pre>\n<div>\nConverts this URL format:\n<\/div>\n<pre style=\"font-size: 10px;\">\r\nhttp:\/\/www.mydomain.com\/flips\/996803385327\/hello<\/pre>\n<div>\nTo this actual&nbsp;php&nbsp;page\n<\/div>\n<pre style=\"font-size: 10px;\">\r\nhttp:\/\/www.mydomain.com\/flips.php?fid=996803385327&amp;valueb=hello<\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Good Resources For Example Rules https:\/\/gist.github.com\/ScottPhillips\/1721489 Before the rules Options +FollowSymLinks RewriteEngine On RewriteBase \/ No Parameters Example RewriteRule ^groups$ groups.php [L] 1 Parameter Example RewriteRule ^flips\/([^\/]*)$ flips.php?fid=$1 [L] Converts this URL format: http:\/\/www.mydomain.com\/flips\/996803385327 To this actual php page http:\/\/www.mydomain.com\/flips.php?fid=996803385327 &nbsp; 2 Parameter Example RewriteRule ^flips\/([^\/]*)\/([^\/]*)$ flips.php?fid=$1&amp;valueb=$2 [L] Converts this URL format: http:\/\/www.mydomain.com\/flips\/996803385327\/hello To this [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75],"tags":[],"class_list":["post-679","post","type-post","status-publish","format-standard","hentry","category-htaccess"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=679"}],"version-history":[{"count":8,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/679\/revisions"}],"predecessor-version":[{"id":1220,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/679\/revisions\/1220"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}