Timeline for Url rewrite not work in wamp localhost
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 6, 2017 at 16:14 | comment | added | Mohammadreza Esmaeeli |
sorry i do it in a wrong way.i change RewriteRule ^Page/(.*)/(.*)$ to RewriteRule ^Page/([\s\S]*)/([\s\S]*)$ and it worked.thank you for your answers
|
|
Jul 6, 2017 at 0:31 | comment | added | MrWhite | Maybe a character encoding or application logic problem in your server-side PHP/DB code? As mentioned, there's nothing in the code you have posted (Apache directives) that would explain this. What version of Apache are you using? | |
Jul 4, 2017 at 18:42 | comment | added | Mohammadreza Esmaeeli |
http://localhost:8080/schoolarshop/Page/13/قوانین-و-مقررات the top url shows error but http://localhost:8080/schoolarshop/Page/13/قوانین works
|
|
Jul 4, 2017 at 17:35 | comment | added | MrWhite |
There doesn't appear to be anything in your .htaccess file that would be dependent on the page title length. (Everything after the second slash is simply passed through to the Page_Title URL param.) Examine the URL parameters that Page.php is receiving - are these as expected? However, I would not expect the page title to control which page is returned either - I would expect the Page_Id to control this?
|
|
Jul 4, 2017 at 16:25 | comment | added | Mohammadreza Esmaeeli | thanks.it work but now i have anither problem.when i visit Page/13/page-title if the lenght of page title is less than 5 it work but for more than 5 character it shows The requested URL Page/13/blah-blah-blah-blah was not found on this server. | |
Jul 4, 2017 at 16:24 | vote | accept | Mohammadreza Esmaeeli | ||
Jul 3, 2017 at 23:17 | history | edited | MrWhite | CC BY-SA 3.0 |
Included reference to current server config
|
Jul 3, 2017 at 22:34 | history | edited | MrWhite | CC BY-SA 3.0 |
Added reference to question, reworded accordingly.
|
Jul 3, 2017 at 22:05 | history | answered | MrWhite | CC BY-SA 3.0 |