I need a lot of fresh eyes. I find it difficult to find a problem.
In the X folder, I have a .htaccess file with the following two lines:
RewriteEngine on RewriteRule ^([A-Za-z0-9\.-]+)/?$ item-display.php?bibid=$1 [NC,L]
My interpretation is that anything in this directory will then be redirected to the item display page. The problem is that on the page with the display of elements, repeating the value of the outputs bibid "display-item". So for some reason, I redirect from: http: // localhost / test / cat / item / 14056a to: http: //localhost/test/cat/item/item-display.php? Bibid = item-display
Any ideas?
Greetings
, , :
RewriteCond %{REQUEST_URI} !/item-display\.php$ RewriteRule ^([A-Za-z0-9\.-]+)/?$ item-display.php?bibid=$1 [L]
RewriteEngine on RewritePath /test/cat/item RewriteRule ^([A-Za-z0-9\.-]+)/?$ item-display.php?bibid=$1 [L]
, , URL, .
The request is being processed, so it extracts part of the name of the rewritten file name that I assume. Try adding the NS flag.
Source: https://habr.com/ru/post/1706461/More articles:ΠΠ°ΠΊ ΡΡΡΠ°Π½ΠΎΠ²ΠΈΡΡ vim 7 html ΠΎΠΏΡΠΈΠΉ Π΄Π»Ρ ΠΊΠΎΠ΄ΠΈΡΠΎΠ²ΠΊΠΈ "utf-8"? - htmlPOSTing ΠΏΡΠΎΠΈΠ·Π²ΠΎΠ»ΡΠ½ΠΎΠ΅ ΠΊΠΎΠ»ΠΈΡΠ΅ΡΡΠ²ΠΎ Π·Π°ΠΏΠΈΡΠ΅ΠΉ ΠΈΠ· HTML-ΡΠΎΡΠΌΡ - htmlVisual Studio plugin for opening 2005 solutions since 2008? - pluginscan a method call be bound to the built-in "set ()"? (and why not?) - pythonboth the top and bottom axes in pylab (for example, w / different units) (or left and right) - matplotlibDevExpress Microsoft Visual C # - c #__doPostback - call code for events from JavaScript? - javascriptDynamically display links using ASP.NET LoginView - asp.netΠΠ³ΡΠ°Π½ΠΈΡΠ΅Π½ΠΈΠ΅ ΠΎΡΠ½ΠΎΡΠ΅Π½ΠΈΡ "ΠΎΠ΄ΠΈΠ½ ΠΊΠΎ ΠΌΠ½ΠΎΠ³ΠΈΠΌ" - sqlSplitting a DLL utility into smaller components in C ++ - c ++All Articles