php - Mod rewrite / clean urls problem -
I've been using a Drupal 4.7 installation for many years, and recently a problem has cropped up. That is, the written URLs are now displaying these characters :? Q = Every Drupal generated URL is as follows: where it will be first.
My best estimate is that why I have recently started using some PHP codes to add context-specific link styles within some sidebocks. Here's the code:
& lt ;? Php $ alias = $ _GET ['q']; ? & Gt; & Lt; A & lt ;? Php $ pos = strpos ($ nickname, "1234"); // node number if (! $ Pos == wrong) {echo 'style = "color: black"'; }? & Gt; Href = "Internal / Link / Surname" & gt; Internal links & lt; / A & gt; Or recently:
& lt ;? Php $ path = isset ($ _ GET ['q'])? $ _GET ['q']: '& lt; Front & gt; '; $ Alias = url ($ path, array ('absolute' = & gt; TRUE)); ? & Gt; & Lt; A & lt ;? Php $ pos = strpos ($ nickname, "internal / link / surname"); If (! $ Pos == wrong) {echo 'style = "color: black"'; }? & Gt; Href = "Internal / Link / Surname" & gt; Internal links & lt; / A & gt; Can this be the problem? If so, any ideas about fixes?
I do not think your snippet is causing it. It reads from the database itself; This does not change the URL. What mod_rewrite is still enabled? This may be due to a recent change in server config. phpinfo () .
By the way, for $ absolute url () is in Drupal 4.7, not $ option Your call should be in the array:
url ($ path, $ absolute = TRUE);
Comments
Post a Comment