rewrite

Easy IIS7 Rewrite Redirect Question

Hi, I'm just getting to grips with IIS7 redirect and having problems doing something that should be really simple: I'd like to redirect all requests for domain.net/post and redirect to domain.net/blog/post and keep the parameters so example: www.domain.net/post/how-to-do-something.aspx -> www.domain.net/blog/post/how-to-do-something.a...

How to change "+" to become "-" in Wordpress search page?

when searching kevin mccarthy, it automatically write in the URL: http://www.web.com/search/kevin+mccarthy but when I change http://www.web.com/search/kevin+mccarthy with http://www.web.com/search/kevin-mccarthy, no result appeared. I have tried modify in wp-includes/rewrite.php but dont know what to replace ...

Help Converting Apache htaccess to Nginx Rewrite rules

I need to convertthe following Apache htaccess rules to Nginx Rewrite rules: Redirect 301 /feed.php http://www.example.com/feed/ Thanks very much~ ...

How does IIS 7.5's Rewrite Rules thing actually work?

I've imported my mod_rewrite rules... everything works just fine... but seemingly randomly it deletes them all. I've been moving some files around in wwwroot... so, my question is this: When I import rewrite rules, does it create a new file somewhere in wwwroot that I happen to be moving/deleting every time? Thanks for any help you ca...

How do I configure nginx and CodeIgniter?

I'm running nginx on my home computer for development. I also have it linked to DynDNS so I can show progress to my co-worker a bit easier. I can't seem to get nginx to rewrite to CodeIgniter properly. I have CodeIgniters uri_protocol set to REQUEST_URI. All pages that should be showing up wtih content show up completely blank. If I ph...

Another apache rewrite question...

Hey, In my scenario I redirect "/index/../" to "/index.php?act=..". I was wondering how can I restrict direct access to "/index.php" but still be able to redirect from "/index/../"? P.S. "/../" is anything... it seems you can't use * there. O.o Thanks in advance, The Devil ...

Zend Framework on iis7.

Recently setup a site on my windows server running Zend Framework and only the index.php page shows correctly. All other internal pages look like they are being redirected to index.php with the URL being rewritten as the correct page URL. Really strange and can't seem to figure out if it's the server configuration or the retire rules in ...

IIS7 URL Rewriting - Subdomain with additional rewrite rules

I am having a problem with the URL rewrite module. I have a subdomain with it's own set of rewrite rules and I am getting 404 errors whenever I click on Urls that have been reformatted. My setup is below. On the main site I am using the following inbound rule to rewrite requests from {http}://mydomain.com/subdomain to {http}://subdomain...

IIS7 URL Rewriting - Subdomain with additional rewrite rules

I am having a problem with the URL rewrite module. I have a subdomain with it's own set of rewrite rules and I am getting 404 errors whenever I click on Urls that have been reformatted. My setup is below. On the main site I am using the following inbound rule to rewrite requests from {http}://mydomain.com/subdomain to {http}://subdomain...

Apache rewrite rule which works with or without a trailing slash

I'm trying to redirect a series of static URLs, and I want it to work whether or not the trailing slash is present: /foo/bar ---> /tacos /foo/bar/ --> /tacos I've tried the following, and all sorts of variations, but I always get a match only with the trailing slash present: RewriteRule ^foo/bar?/$ http://url.com/tacos RewriteRul...

Custom Post Type and Taxonomy Permalink Rewrite in WordPress 3.0.1

I have a 'story' Custom Post Type and 'artist', writer' Taxonomies. I need to set rewrite rules in the functions.php for the permalinks to look like this: Artist (Taxonomy/Category): http://www.example.com/isaac-deutscher (/%artist%) Writer (Taxonomy/Category): http://www.example.com/jean-paul-sartre (/%writer%) Story (Custom Po...

htaccess rewrite problem

I am in the process of moving a site to another server and I've ran into a problem. The site uses .htaccess to redirect to index.php so the index.php can use $_SERVER['REQUEST_URI'] to load the whatever page is being called... However i cannot find where the old server has the .htaccess rules...so I am doing my own. The .htacess rules ...

Multiple Custom Permalink Structures in Wordpress

I have one Custom Post Type 'story' and two taxonomies, 'artist' and 'writer'. I have managed to get a Custom Permalink Structure like /%artist/%writer%/%story% by doing this (resumed code): add_action('init', 'custom_init'); add_filter('post_type_link', 'story_permalink', 10, 3); function custom_init(){ $story =...

Alternatives to base tag

I used mode rewrite on my website I used the base tag to solve my relative links problem <base href="/" /> But the problem is absolute link eg. http://www.absolutelinks.com It changes it to www.mysite.com/http://www.absolutelinks.com How can i fix this ...

RegEx help for IIS URL Rewrite

I need to take request for www.domain.com/123456/Catalog.aspx and rewrite to www.domain.com/Products/Catalog.aspx?ItemID=123456 where 123456 will always be numbers. Any help is appreciated. Thanks. ...

URL Rewriting Domain Root to Subfolder

I'm trying to figure out how to write an IIS URL rewrite rule that will take my domain (mysite.com) and rewrite it as (mysite.com/cms). I would also like www.mysite.com to rewrite to mysite.com/cms. I'm using a Windows shared hosting account with GoDaddy. ...

rewrite and redirect

hi i just applied a new url structure to my site the links were like this before using rewrite mod /detail.php?id=123 and after /restaurant123.htm but the problem is /detail.php?id=123 still work and i've spent a week to do something to redirect /detail.php?id=123 to /restaurant123.htm without an infinite loop and i searched all over th...

NGINX route all requests for images to external server

I would like to route all requests to my nginx server for jpg/png images to another external internet server which actually holds the images. What would the rewrite look like? This is mostly for development so I'm not worried about the overhead of doing this. Then again, perhaps there is none. Both servers are mine so this isn't a reque...

Remove top level parent from permalink structure on Wordpress 3.0.1

I'm working with wordpress permalinks at the moment. The site has 3 hidden areas, managed simply by a top level page. As this page is simply structural, I don't want it to appear in the permalink: -Section 1 -- Page 1 -- Page 2 - Section 2 -- Page 1 -- Page 2 - Section 3 -- Page 1 -- Page 2 instead of /section-1/page-1 etc I'd like /pa...

url rewrite deosnt access my css and images? why

i have this rewrite rule for my urls, it deosnt seem to acess the css and images, why? :)) orginal url its working: http://www.example.co.uk/viewprofile.php?user=muna rewrited url, this deosnt work: http://www.example.co.uk/user/muna htaccess code: RewriteEngine On RewriteRule ^user/([^/]*)$ /viewprofile.php?user=$1 [L] my css ...