index.php/News/1/Display/Woot_my_frist_article/
I wonder if it is wise to use SEO with slashes as it confuses the browsers -
index.php_News_1_Display_Woot-my-frist-article
seems to cause less problems, well it did for me during development of One Ring. the underscore character is not normally used in titles, but if it is you could add a string replace. Also I am not sure, but it seems that the entire query is required to display the data where it should only require the article and cat ids so if you change the title of your article it will still bring up the correct content. All text / title should have no effect whatsoever on the validitiy of the query string.
-Lobos
--
-Lobos
Professional PHP Framework Services: Concept, Development and Deployment
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Module: News
-
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
-
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 418
Lobos
index.php/News/1/Display/Woot_my_frist_article/
I wonder if it is wise to use SEO with slashes as it confuses the browsers -
index.php_News_1_Display_Woot-my-frist-article
seems to cause less problems, well it did for me during development of One Ring.
-Lobos
I'm not seeing why browsers would be confused, care to explain that a bit? -
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
Well it has a lot to do with relative paths - and it also messes things up if you happen to use your server for other things apart from postnuke (although they may have something to stop this happening). So if you have some files for download in mysite.com/downloads/ (maybe this is not the case?) or if you use relative urls like index.php?module=lala the browser will think it is
index.php/News/1/Display/Woot_my_frist_article/index.php?module=lala
I am not sure if these issues are addressed or not, but this was some of the stuff that I delt with when I implemented my SEO.
--
-Lobos
Professional PHP Framework Services: Concept, Development and Deployment -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 418
When using slashes in URL's, it's true that links tend to append on the current path if they're not complete.
When using slashes, which in my oppinion is THE way to build URL:
/News/1/My-first-arcticle
/Reviews/2/The-PS3
/Forum/topic/453
/PhotoAlbum/5/My-vacation-on-the-moon
When there are links in the HTML that are like: admin.php or whatever, they'll be appended to the current path, which is in the case of the news module: /News/1/My-first-article/admin.php
By adding one line to the design/templates, this problem is solved.
<base href="<!--pngetbaseurl-->"> (or whatever the baseurl is used in Xanthia)
Using that, all non prefixed links (admin.php instead of http://site.com/admin.php) are correct, because the base-href ellement will prefix those links (check any cached page on SE's, same thing)
So, it would be confusing to browsers, as long as the designer uses the proper tags
edited by: ZarToXidE, Mar 08, 2007 - 10:13 PM -
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
Cool about the base tag - I didn't know about this HTML tag
Do you have any info on the other point that I mentioned about accessing directories on your webserver with this SEO running.
For example I have pn8 running on the root of www.mysite.com - I then decide to add some more sites in sub directories, eg www.mysite.com/subsite1/ www.mysite.com/subsite2/ will these still run ok? Like I said I am not sure if they tackeled this or not. Actually I would be intereseted to know if there is a solution to this as I could use someting similair for my project.
-Lobos
--
-Lobos
Professional PHP Framework Services: Concept, Development and Deployment -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 418
Yes that can be done.
Look at the .htaccess file provide in the .7x series. You'll see a few directories that are excluded from being rewritten. Add any non-postnuke stuff in the .htacess and it will work.
Making /news/1/display/some-article, valid and pull the data from index.php/news/1/display/some-article where each exlcuded directory will be called as they're called without being rewritten.
for example.Quote
RewriteRule ^subsite1/.*$ - [PT]
- Moderated by:
- Support
