Liferay blog url-rewriting - url-rewriting

I am using liferay 6.1 and i have already shortened the url of the blog using url rewriting but still i have the problem in the url.
The url gets showed up like this localhost:8080/blog/-/blogs/testing, but i want to change the url to this localhost:8080/blog/blogs/testing inshort i want to remove the - from the url.
Any help will be apprecicated, I am trying this from very long but cannot find the solution.

You could try doing this using the urlrewrite.xml file that you can use in Liferay, but a better option would be to put Liferay behind an Apache Reverse Proxy and use the rewriting capabilities of that: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Related

Firebase hosting seo friendly url

I'm using firebase hosting for my blog
I use this
mydomain.com/?postid=how_to_etc
Method to get my post data
Is there any way to use SEO friendly url like,
mydomain.com/how_to_etc
So that this link should not redirect to 404 error page
This kind of behavior requires rewrites configured with a single page app to interpret the URL path for its own router. this does depend on your current setup to determine the final work required.
alternatively, if you are using simple HTML; you can look at window.location properties and split the path with split.("/") to determine the path . See:
https://developer.mozilla.org/en-US/docs/Web/API/Location

Angular UI-Router (1.x) Change Host Url

I have a requirement from a client to change the web site Url to a subdomain when they enter the checkout section of the site we are developing for them. For example from www.mysite.com to checkout.mysite.com. We are using UI-Router in HTML5 mode and would like to have the router change the Url to the subdomain instead of going to www.mysite.com/checkout. Does anyone know a way that this can be accomplished? I've also tried using pushState but without success. All of the subdomain suggestions I've tried have not worked. Honestly even if I just put a "fake" url that would work fine too. Changing the Url is more of a visual thing instead of actually redirecting to a subdomain.
After much review I found that this cannot be done because it is a security issue; even switching to a subdomain (which is what I was trying to do) is not allowed.

WSDL has the wrong URL in the soap:address location Magento

I am working on Magento Soap API version 2. but During login call I am getting site complete index page HTML instead of valid data.
After Debug using Soap UI I have found that soap:address location URL is incorrect.
URL Coming: http://SITENAME/index.php/?type=v2_soap
Correct URL: http://SITENAME/api/v2_soap/?wsdl=1
I have checked in wsdl xml as well. It have default values there.
Anyone face the same issue ? Please Help !!
If you didn't change anything in Magento's code you should use this URL:
https://yourmagentosite.com/index.php/api/v2_soap/index/
if it will not work, try to use: https://yourmagentosite.com/index.php/api/v2_soap/
Also, keep in mind that some url may not work due to incorrect web server configuration, in this way you should look into web server config.

Mapping Old URLs to new joomla 2.5 website SEF urls?

I have a weird situation. A client of mine has a website having this kind of URL:
OLD URL: website.com/products/the+product_1.php
Now the new website that we developed has joomla 2.5 and has all content in there... So we have enabled Joomla SEF there. Now the issue is how to map the OLD urls to new Urls.
And the new Joomla 2.5 URL Looks like this:
New URL: website.com/products/digi/category/the_product_1
Now the issue is the search engines have indexed the OLD URLs and client does not want to loose the Page Ranking as you know how it matters.... They have about 18k URLs.
How best I can map the Old URLs to new URLs?
Please help?
Hm, why didnĀ“t you use the Joomla build in redirection manager?
http://docs.joomla.org/Help17:Components_Redirect_Manager
Sure it takes some time to build the links into it, but from my point of view this would be the best way. Then there is no need to develop something and everything can be managed in joomla.
You can also write a script which add links to the SQL DB if needed for this component.
The easiest way would be to create a system plugin that looks for the old product URL pattern and fires a redirect to the new URL. You should also look at this list of new and renamed events as some of them have changed since the plugin documentation was written.

URL Rewrite with Joomla on IIS7

I have Joomla 1.5.9 running on IIS7. I'm now experimenting with the SEO Settings from the Joomla global configuration page.
First I toyed with Search Engine Friendly URLs (that gets rid of the queries part of URLs); that works fine.
I also tried to enable the "Use Apache mod_rewrite". I installed "Microsoft URL Rewrite Module for IIS 7.0" and added the web.config as per http://learn.iis.net/page.aspx/527/joomla-on-iis . When clicking on menu links, this seems to work in that I no longer see index.php in the URL. The address bar updates to what appears like the right URL, but the content shown is always that of the home page. I tried both in IE and Google Chrome with the same result. Refreshing the page after loaded made no difference.
I tried re-starting IIS7, it didn't make a difference.
Edit: After I followed the suggestion below (followed instructions at http://www.mydotnetworld.com/post/2008/10/24/URL-Rewriting-In-Joomla-15-on-IIS-7.aspx :turned on fast cgi, modified php.ini, and imported rewrite rules instead of putting them in a web.config myself), I now get 404's instead of just showing the home page's content. The URL still appears to be correctly rewritten. So, different behavior but still doesn't work. I'm not sure this is useful information, but these two fields are shown in the 404 page:
Requested URL http://localhost:80/joomla_course/seasonal-specialties
Physical Path C:\inetpub\wwwroot\joomla_course\seasonal-specialties
Should the physical path be the 'non-rewritten' URL? Or is it expected that that it be like this?
Edit 2: Oho! I found someone with the same issue posted on Joomla forums: http://forum.joomla.org/viewtopic.php?f=543&t=364706&p=1598137#p1598137 . No answer there either, though.
Any idea on how to diagnose (or even better, fix :) ) this?
Thanks!
I got this to work now. The key was to make sure FastCGI is used to run php (as per http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70 ), and making sure that the "Use Apache mod_rewrite" is enabled. If "Use Apache mod_rewrite" is turned off but the rewrite rules are present in IIS7, then the HTML shows up but none of the styling or images.
The requirement for using FastCGI is weird (and contradicts what is suggested in http://maximumpcguides.com/windows-vista/how-to-create-a-windows-vista-iis7-mysql-php-web-server , which is what I used to setup php in the first place). Everything seems to work when not using FastCGI, except for the URL rewriting.
It seems that either importing the rules (as suggested in http://www.mydotnetworld.com/post/2008/10/24/URL-Rewriting-In-Joomla-15-on-IIS-7.aspx) or manually adding them to a web.config file (as suggested in http://learn.iis.net/page.aspx/527/joomla-on-iis ) will work.
It looks like there is something wrong with the rules in the web.config. Just going from a comment on the article you linked you are not the only one having this issue. I would remove the web.config and then follow the steps outlined here.

Resources