![]() |
|
#1
|
|||
|
|||
RewriteRuleI have just read the article http://www.desilva.biz/apache/rewritedir.html about the RewriteRule. However can anybody tell me how I should rewrite additional levels?
My pages are recalled using first level index.php?opt= second level index.php?opt=pages&id= and third level by index.php?opt=pages&id=&par= How would I write the second and third levels? |
|||
|
#2
|
||||
|
||||
Multiple query string Apache rewrite ruleHello misunderstood,
It's been a while since I figured out my last mod rewrite rule but try this for a possible immediate solution. Code:
Let me know if it doesn't do the job... we may need to fine-tune it yet. Your html / links should look like this... HTML Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
|
I tried that into the htaccess but now my site comes up forbidden access?
Am I missing something? ![]() |
|
#4
|
|||
|
|||
|
I have read a few more forums and I seem to think I may have a problem with my .htaccess file being read? But to be honest I havent got a clue and am clutching at straws!
|
|
#5
|
||||
|
||||
|
I assure you the rules are working on my set up - I just checked it, so it might be a number of server issues.
You might want to get your web host to confirm that you can use Apache's mod rewrite for your website (if you haven't already confirmed that). __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#6
|
|||
|
|||
|
Thanks for the reply. I am in the process of contacting my host to see why this is not working. One last question, If I put
RewriteEngine on in the htaccess without any rules would this or should this affect the access to the site? I was trying this as a test. |
|
#7
|
||||
|
||||
|
To be honest I wouldn't know what could happen, since the one question I would ask a host before using them is whether they have it (mod rewrite) on for me.
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#8
|
|||
|
|||
|
One last question this is what is in my htaccess file:
Code:
And then the site shows Forbidden you do not have access/ to this site. Does everything look correct? My host say that the problem is the script and not the server. I have tried everything but the next step is bang my head against a wall to see if that makes a difference. ![]() |
|
#9
|
||||
|
||||
|
Oh! FrontPage Server Extensions enabled...
How are your links created right now? I told you that my rewrite rule is not perfect yet... so, for now (just to get it to work), it is imperative that the links always end with a slash... Otherwise point me to a web page with some links so I can figure out if it's just a missing slash or what-not... __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#10
|
|||
|
|||
|
http://www.nwcfa.co.uk is my site
all the links are created from the script/database I feel happier that I know why things are not working |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rewrite urls for Mambo | jrobbio | MySQL / PHP Forum | 16 | 24-Jul-2003 04:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The