Advertisement

01.07.2008 at 01:25PM PST, ID: 23064853 | Points: 500
[x]
Attachment Details

Setting up .htaccess Rewrite Rules for SEO Friendly URL's

Asked by thyros in Apache Web Server, CGI Scripting, PHP Scripting Language

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=2

If 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
[+][-]01.07.2008 at 02:29PM PST, ID: 20603892

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.07.2008 at 02:30PM PST, ID: 20603905

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.07.2008 at 04:56PM PST, ID: 20604881

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 08:50AM PST, ID: 20610164

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 12:39PM PST, ID: 20612494

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 07:50PM PST, ID: 20615373

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.10.2008 at 03:33PM PST, ID: 20632529

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.10.2008 at 04:34PM PST, ID: 20633046

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628