redirecting url without www to www
Hello I need your help. I want to test if the url is entered without www like example.com it should be forwarded to www.example.com ...
Hello I need your help. I want to test if the url is entered without www like example.com it should be forwarded to www.example.com ...
Seems like a stupid question to which the answer would be "Don't use encodeURL()!" but I'm working with a codebase that uses netui anchor tags in the JSPs and I need to disable the writing of JSESSIONID into the URLs as it is a security risk. In WebLogic, you can configure this by configuring url-rewriting-enabled in weblogic.xml (I kn...
Hello, I'm trying to add the session tracking feature to a 12 year old java web application. Which uses MVC pattern with jsp and servlets. We need to make it work if cookies are disabled. I like to know what is the best way to implement session tracking to this application? :) and when i use getRequestDispatcher, do i need to use en...
I need to redirect my old cart links to the new site's search Here's an example: old url:http://www.example.com/servlet/the-1736/Festo-Line-Acuator-DNC-dsh-100-dsh-150-dsh-PPVA-dsh-Q/Detail what new should look like: www.example.com/cart/index.php?dispatch=search.results&q=Festo-Line-Acuator-DNC-dsh-100-dsh-150-dsh-PPVA-dsh-Q So on m...
Hi everybody, I'm developping a website using php and the "template.inc" class. The problem is that I want to create a mini-cms that allows the admin to create an "html" page with these mysql attributes: Table Name : Page ----------------- id :auto-icremented) name :varchar In the architecture, if he created the page number "5", t...
Hi guys, I'm using the zend framework for my project - I've tried to set up using clean links - however I've noticed that my links seem to be getting really really long and wonder if at this point there would be a way to incorporate a structure where I could user smaller links. Heres an example my website has a directory controller, whi...
I'm trying to modify my web page, which I currently use QueryStrings to display pages, and want to change website URLs to "search engine friendly" ones. I'm a newbie in regular expressions and also in .htaccess file, and I want to change URLs from http://someaddress.bla/index.php?lang=en&rootCategory=$rootCaty&leafCategory=$lea...
I have ELMAH setup on my production server and it has done a fantastic job of letting me know about any niggles - as well as any creative SQL injection! I've decided to introduce URl Rewriting and went for http://www.urlrewriting.net/ in the end. It was nice and easy to setup and it's doing exactly what I want with the customer-facing ...
I have a Spring 2.5 application that contains a Flash banner. I don't have the source for the Flash component but it has links hardcoded to certain pages that end in .html I want to be able to redirect those .html pages to existing jsp pages. How can I have Spring resolve a few .html pages to .jsp pages? My project looks like: WebCo...
I have a format of pages that I want to perform an A/B comparison on using google website optimizer. the URLs look as follows - the first page I want to compare... <mywebsite.com>/request1/([a-zA-Z0-9\-]*)_([0-9]+).htm vs <mywebsite.com>/request2/([a-zA-Z0-9\-]*)_([0-9]+).htm the goal page is <mywebsite.com>/request-sent.htm H...
I would simply like to rewrite all requests from: http://example.com/products/product.cfm?id=product-name to http://example.com/products/product-name and secondly, http://example.com/category.cfm?id=some-category&sub=sub-category to http://example.com/some-category/sub-category Here is what I’ve tried: Options +FollowSym...
Hi, it's been a couple of hours now that I'm working on this and I can't seem to figure out what the correct regex is. First of all, I'm working with IIS6 and ISAPI_Rewrite 3.0 and I'm testing my regex with the utlity that comes with it before using it on the web site. The website has an web app located at www.foo.com/bar/ and I want t...
This is beyond my level and I need some help. In the htaccess make redirect rules for the following... if example.com/1stleveldirectory doesn't end in a slash add one. if example.com/1stleveldirectory/ ends in a slash don't add anything. if example.com/1stleveldirectory/file is like this add .html. if example.com/1stleveldirectory/fil...
I'm running Sitecore 6.1 on Windows 2008, IIS7, and I'm trying to use the URL Rewrite Module to do a redirect. When I enable the rule and hit the URL that triggers it, I get a YSOD. The same rule works perfectly on a non-sitecore site on the same machine. According to the Failed Request Trace, the rewrite module does its thing just fine,...
YouTube has URL's like these: http://www.youtube.com/watch?v=zKqeCtjFGFc When I create a PHP page mine would be like these: watch.php?v=zKqeCtjFGFc How does YT hide the PHP extension, and I know YT is probably written in Python or something other than PHP but I have seen this done in WordPress and other PHP written apps. Can this be...
We use a custom urlrewiter on our .net sites and set a wildcard mapping to redirect any request to the .net isapi filter for processing. This works fine but we have noticed an issue with our custom 404 pages not working and iis handling the 404s instead. We configure the custom errors in the web.config as follows <customErrors mode="O...
we are moving website platforms. The old site has some url rewriting built into it, so the urls look like "/product-name-here-1.aspx". I need to get the id out of this url using Isapi-Rewrite syntax. I've got a map file that takes the id and redirect to the page on the new platform. thanks in advance. ...
I have a website that use this style : /index.php?page=45&info=whatever&anotherparam=2 I plan to have pretty url to transform the previous url to : /profile/whatever/2 I know I have to use .htAccess and to redirect everything to index.php. That's fine. My problem is more in the index.php (Front Controller). How can I build back the ...
Hello, I have a MySQL table designated for storing usernames, passwords, etc. In this table, one field is called "username." I would like to create a user page for each user that gets entered into the database. I would like the URL for any given user page to be http://foo.com/member/username. How could I do this? Thanks in advance,...
I want to rewrite my url in wordpress. How can i rewrite my url in wordpress. I am trying to create htaccess file like following <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /shopboxtile/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([0-9]+)$ http://localhost/shopboxtile/?productid=$1 </I...