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, then Open httpd.conf and make sure that there is one of these lines in the WebRot directory block: Allow Override File InfoSo or Allow All Code> < / P>

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -