url-rewriting

Cleaning up URLs. URLRewrite OR Redirect?

Hello, I'm a bit stuck on how to clean up some URLs. Here is what I have mycompany.example/product1/Default.aspx?client=myClient&type=1 Something similar to that with a very much much longer querystring. I would like to leave the files where they are, but when people type in the URL myproductexample/product/ it actually show the ...

Using organic URLS with my site?

How would I go about making my site use organic urls (like http://www.mysite.com/aboutus) - i don't want to use a CMS - my site is powered from index.php is there anyway of getting the text after the / so that I can select that page from the database? I'd rather not do /?aboutus Thank you :D ...

Ajax URLs - fast, beautiful and functional

As the majority of you know AJAX works poorly with fixed URLs and all major sites now use the # to split the AJAX part of the URL. I will also do that but am trying to achieve the prettier, less obtuse and fastest way of doing it. Edit: So far I've analysed Facebook way of doing it (last night I've done it poorly) and silky pointed me o...

w3wp has handle on download files

I set up iis to handle .exe with "asp.net 2.0"s isapi filter to enable dynamic url replacement. For this I setup the extension in iis and added the following line to web.config. Works fine so far. <add path="*.exe" verb="*" type="System.Web.StaticFileHandler" /> the problem is that form that point w3wp process has several handles on th...

How to handle all URLs from 1 page using PHP?

I would like to redirect all urls from the webpage (what ever what's after the domain name) to a single webpage that will analyse the complete url and will show the good page and information. I know it's possible with Mod_Rewrite and using some PHP function to get the URL but I can't find any good webpage showing the steps and how to do ...

Help with .htaccess RewriteRule. Need to take user from one URL to other.

I want users who type http://www.example.com/word-of-the-day to be taken to http://www.example.com/index.php?page=word-of-the-day But I want http://www.example.com/word-of-the-day to be shown in the URL for the user. What should I do in my .htaccess? I tried but the regular expression and the syntax of RewriteRule is way too c...

How does URL rewriting work?

Hey everyone, I am new to URL rewriting and I have an .htaccess file that looks like this: RewriteEngine On RewriteRule /*\.(css|js|gif|png|jpe?g)$ - [NC,L] RewriteRule "^(.*)$" "www/index.php?_url=$1" [QSA,L] Does this code just rewrite the code internally, or is it supposed to change to URL in the address bar? As of now it ...

SEO Destroyed By URL Forwarding - Can't figure out another way

We design and host websites for our clients/sales force. We have our own domain: http://www.firstheartland.com Our agents fill out a series of forms on our website that are loaded into a database. The database then renders the website as a database driven website. /repwebsites/repSite.cfm?link=&rep=rick.higgins /repwebsites/repSit...

POSTing to a re-written URL on IIS 6 doesn't work

I am working on a site which is programmed in C# .net. It uses a CMS called ADX Studio (a decision which predates my time there) which provides a shonky form of URL Rewriting (as far as I can tell it works by assigning an aspx page as the default 404 handler in IIS). I have an web form which lives at a rewritten URL. I edited it so that...

Why Intelligencia.UrlRewriter not work with iis6?

Intelligencia.UrlRewriter work with ASP.NET development server but not work in IIS6. what is the problem? ...

How can I rewrite urls into pretty urls using mod_rewrite and php?

Hello, First off I wanna apologize for my ignorance but mod_rewrite and regex seems just a bit complicated for me and I need this done fairly quickly. Basically what I'm trying to accomplish is the followings: Get rid of the .php extensions and get rid of the index.php - Basically when a user enters http://www.example.com/index.html ...

Web.config urlMappings & download dialog box problem

I simply want to rewrite a URL like http://www.domain.com/2010 which actually opens something like http://www.domain.com/page.aspx. Since that's not a complex rewrite requiring wildcard mapping, I decided to use urlMappings section in my web.config file. All worked fine for 95% of users. However there is a strange issue: when users beh...

Apache Rewrite and variable

Hi, I would like to rewrite: http://url.com/app%5Fname/action.do to http://url.com/context/action.do?value=1 My question is how to add the variable 'value' to the url for each rewrited URL (it's a hard coded value) ? #RewriteRule ^/app_name(.*) /context$1 Thanks! ...

How to do a "backwards" regular expression search and extract

I have a bunch of URLs to parse in PHP, like this: www.example.com/shopping shopping.example.com example.com/pages/shopping for about 100 different pages (not just shopping - some are contact, some are directions, etc.). I have a seed set of data, which tells me where to look for the page names, like this: www.example.com/[pagenam...

Rewrite To WordPress Page

I have an existing page of /programs/kids.php that I want to load a category page from WP. I want the .htaccess file in /programs to handle this rewriting for me. Something along the lines of: RewriteEngine on ReWrite kids2.php http://www.mysite.com/blog/cat/kids/ Any help would be awesome. ...

Help needed for mod_rewrite / url rewrite expression

Hi i m newbie in URL rewriting.. frankly speaking i have no idea bout using regexp Here is what i want to do .. i want a url rewrite rule for www.mydomain.com/news/this is new title/1 this shud call/go to www.mydomain.com/news/display.asp?id=1 similarly www.mydomain.com/articles/this is article title/1 shud call/go to www....

Why are uppercase characters causing redirects (and GWT redirect errors) in my encoded URLs?

I am seeing strange redirect behavior with URLs that have encoded characters. For example, the following two URLs differ ONLY by the case of the "e/E" in the first encoded character (i.e. "%e2" versus "%E2"). URL 1: http://youlookfab.com/welookfab/topic/your-favourite-80%e2%80%99s-music-bands "200 OK" HTTP status, page loads fine UR...

.htaccess - route to selected desination but change browser url

Problem: I'd like to accept the original request. Say its, /IWantToGoHere/index.php but I want to return to the browser, /GoHere/index.php To be clear: I actually want to send the original request location down to the script requested, however, I want to return the user a browser URL to another destination. Code: RewriteEngine on Rewr...

.htaccess subdomain and /

username.domain.com/file rewrite to domain.com/q.php?user=username&url=file how do that? Thanks. Sorry for my English. ...

Dynamic url routes ASP MVC

Im trying to make a very simple application that lets my client create their own pages. The hard part is to let them create thir own URL. Client need to fill in: Page name (ex. About us). Page description (ex. We are a big company). Page URL relative (ex. /About) When client enter this information and save, it should be saved in the...