My blog URLs look like this /blog/?action=viewArticle&articleId=2
I want them to look more like this: /blog/name-of-article
I've Googled, read a number of topics here on Stackoverflow, tried tweaking my .htaccess file, but nothing's working.
I'm not well versed on .htaccess or mod_rewrite tactics, and I'm not one to ask for help unless I really get stuck, so.... Help! :-)
Thanks!
Related
I want a URL on the form
mypage.com/ID/Some-random-text
to load its content from
mypage.com/loadstuff.php?id=ID
Can anyone show how this is done?
I have looked on different SEO optimization websites but not been able to figure out how to do this particular trick.
You could use apache httpd URL rewriting for this.
RewriteRule ^/(.*)/.*$ /loadstuff.php?id=$1
Note this example is not tested. You can find out more here https://httpd.apache.org/docs/current/rewrite/intro.html
Other web servers likely have similar options.
I've read pretty much everything about Yii, such as Ullmans book, the guide, on several forums and of course exploring the framework files. As I'm learning to program at the time I do however rely on pratical examples to connect with the theory and I can't seem to find any useful on the Yii URL part (almost all examples is about removing index.php or shorten the URL).
So I'm kindly asking anyone to give me a practical example on how to change e.g.
http://www.domain.com/Yii/index.php/programsgames/739
Into
http://subdomain.domain.com/?title-of-item/title-of-category/title-of-main-category/739
And perhaps discuss if it's best to change in CUrlManager.php or in .htaccess?
I could imagine that a lot that could benifit from this example as it includes a subdomain, an URL change and additions to in as well. Hope that I'm not way off!
To remove index.php you should add 'showScriptName'=>false, in urlmanager array in your config file.
For formating path maybe something like this could be used.
'http://<subdomain:\w+>.domain.com/<item-title:\w+>/<item-category:\w+>/<main-category:\w+>/<id:\d+>' => 'yourcontroller/youraction'
I am looking for the best solution to solve the problem of multilingual webpage with django-cms. Django-cms has build in multilangs and is working cool. Now I prepare my own app. I am going to connect this app with django-cms by apphook. I need some clever idea for puting langs into my app. The best solution is to have the same tabs with langs in my app, like is in django-cms page. I love this cms's solution but I haven't got idea how to do this. Have you got any ideas?
Ok, I see that I have minus one point for my question, I don't understand why. I did a lot of research. I was trying transmeta, is not what I was expected, django-multilingual error:
multilingual/templatetags/multilingual_tags.py in reorder_translation_formset_by_language_id, line 82
multilingual-ng is not supported.
In djangopackages.com I found a lot of libs, I am think about this django-modeltranslation but still I am looking the best solution that is the most similar to django-cms - this tabs looks very cool. If anybody could help me, if you could give me some suggestions I will be glad. Thanks.
https://github.com/KristianOellegaard/django-hvad
Very strong ties to django CMS so it's very likely to work, and continue working.
The information on the home page of the project I'm working has been piling up that now we are looking for something to create a dashboard-like interface.
That's how I found Apotomo, but I'm wondering what would be some alternatives worth looking into.
So far, I've looked through the Rails Presenters on ruby-toolbox.
Thankful for any suggestions to speed-up the development.
ActiveAdmin has a nice dashboard, might be worth checking out. Here it is on their demo and the commented code
today I have URIs like /products/:permalink to show products. Each product has one category and I would like to get something better for SEO as the term "products" is not good for me.
My wish is get "/:category/:permalink" => "/sports/permalink-of-my-product".
Thanks in advance.
I doubt that someone knows more than Google. Here's their guide to SEO. It says:
Creating descriptive categories and filenames for the documents on
your website can not only help you keep your site better organized,
but it could also lead to better crawling of your documents by search
engines.
By the way, look at the path to the SEO guide:
http://www.google.com/webmasters/docs/search-engine-optimization-starter-guide.pdf
Totally follows this recommendation!