apache - Static text on rewriterule -
I am trying different ways to create URLs like this:
I have tried:
RewriteRule ^ Postal-zip / ([0-9] +) $ code.php? Thecode = $ 1 [L]
and
RewriteRule ^ Postal-zip / ([0-9] +) $ post-zip / code. Php? Thecode = $ 1 [L]
There are some more things but I have not got the result, do anyone have any ideas about this?
Your rules look good. It looks like
mod-rewrite is not turned on. First, before your rules, make sure that you have:option + follow link - to work for it,< On the next
, set
both to and If you are not sure if the mod_rewrite is also installed, phpinfo (); if you are unsure of.htaccess files; Look at the list of modules installed in the output of , by default, mod_rewrite is not enabled for.htaccess files If you are managing your own server, thenOpen httpd.conf and make sure that there is one of these lines in the WebRot directory block:Allow Override File InfoSo orAllow All Code> < / P>
Comments
Post a Comment