I would like to employ static url's in my html pages but have apache mod_rewrite convert them into variables and parameters. For example; I use the following link to generate a dynamic page;
http://www.mysticletters.com/quran-viewer/iqra.php?&Layout=1&QuranName=Arabic-Tashkil-Unicode&Translation=English-Yusuf-Ali&Transliteration=English-Transliteration&Interpretation=Jalalayn-Unicode&Surah=2If broken down into it's main parameters;
&Layout=
&QuranName=
&Translation=
&Transliteration=
&Interpretation=
&Surah=
Ideally the link format would translate to something like this in the address bar;
http://www.mysticletters.com/quran-viewer/1/Arabic-Tashkil-Unicode/English-Yusuf-Ali/English-Transliteration/Jalalayn-Unicode/2/However, the only issue I can think of, is that sometimes a parameter such as &Interpretation= will be simply empty and have no value, in such a case, how would the server know the next value in the url is not for Interpretation but a value for the &Surah= parameter?
I am not familiar with the syntax for this purpose, so I would appreciate if someone could provide some guidance on how to make the above dynamic url a bit more friendly and static.
Thanks for your time.
Start Free Trial