![]() |
|
#1
|
||||
|
||||
|
I've just realised that pages like
http://www.topfunwebsites.com/mambo/...age&Sub Menu= are not being crawled properly by Google, its cutting them off like this: http://www.topfunwebsites.com/mambo/...page&Itemid=47 and therefore missing all the subpages there. I think it might be my time to attempt a re-write rule on the site. I tried once before, but I got all kinds of errors and chickened out of it. Rob |
||||
|
#2
|
||||
|
||||
|
Go for it, I'll be more than happy to help you - but you know that already!
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
||||
|
||||
|
Thanks man.
Ok here goes nothing: I've got this from somewhere else that had a mambo mod_rewrite htaccess file. Code:
For /index.php?option=displaypage&Itemid=47&op=page&Sub Menu= I would like to see something like http://www.topfunwebsites.com/mambo/e-cards/ecards.html For /index.php?option=displaypage&Itemid=58&op=page&Sub Menu= I would like to see something like http://www.topfunwebsites.com/mambo/...limpfish1.html For /index.php?option=displaypage&Itemid=56&op=page&Sub Menu= I would like to see http://www.topfunwebsites.com/mambo/...is-castle.html So here goes my attempt: Code:
How does this look. Rob |
|
#4
|
||||
|
||||
|
I can't get to your website presently, I suspect it's the Google ads acting up, which it is today.
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#5
|
||||
|
||||
re: Rewrite urls for MamboLet's take this step by step:
Your query string in /index.php?option=displaypage&Itemid=47&op=page&Sub Menu= only passes 4 values to the script in index.php i.e. Code:
Out of these, if option, op and SubMenu doesn't change much, then you could effectively do the following: File: .htaccess in the /mambo folder. Code:
Your html to show the links: HTML Code:
Rewriting URLS requires massive attention to the finest detail so expect a single misplaced slash here or there to mess up everything else. Try this first - if and when it works, then, we can add to these rewrite rules and make some fancier changes. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#6
|
||||
|
||||
|
I got a 403 saying that it couldn't access /mambo
|
|
#7
|
||||
|
||||
|
OK, I'll have to replicate your site structure and test it out... but tomorrow
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#8
|
||||
|
||||
|
Ok the reason why I was getting errors was because I hadn't added
Options +FollowSymLinks before turning on mod_write The problem now is that it isn't actually working, its just being ignored. e.g. Code:
Can you see anything wrong their? |
|
#9
|
||||
|
||||
|
Oh Rob... I am so sorry! I totally forgot about this thread...
One quick question what's [QSA, L]? __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#10
|
||||
|
||||
|
qsa (query string append) - The help doc says that qsa forces the rewriting engine to append a query string part in the substitution string to the existing one instead of replacing it.
L means last. Rob |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SE Friendly URLs Apache Bug? | JamesRxx555 | Web Hosting Forum | 18 | 18-May-2004 05:50 |
| Need rewrite help for cgi script Shop cart | theblade24 | Apache Web Server Forum | 18 | 26-Jan-2004 06:23 |
| Redirect multiple URLs to one script, masking true URL | Maccaday | Apache Web Server Forum | 1 | 10-Dec-2003 09:34 |
| rewrite in Apache2 | lordklloyd | Apache Web Server Forum | 2 | 17-Nov-2003 07:20 |
| Generating simple URLs for search engines | jrobbio | MySQL / PHP Forum | 1 | 17-Mar-2003 12:22 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The