Questions tagged [url-rewriting]

Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Get logged in username in wordpress url

I want to get the username of the logged in users in the URL of my wordpress site. Like if user: arvind is logged in, I want to get the url as 'www.wp.com/arvind' or 'www.wp.com?user=arvind'. Is ...
Arvind07's user avatar
  • 159
0 votes
1 answer
1k views

Redirect URL to an existing page with query string or #! added on

I'm trying to make a photo gallery where the individual photos can be shared on Facebook and Twitter, and when you click the link, the photo that was shared will open in a lightbox automatically. ...
Ryan Giglio's user avatar
0 votes
1 answer
220 views

"set_front" => false on custom post type breaks wp_list_categories links [closed]

My question is related to this one. I would like my post permalinks to be prefixed by /blog/, but I don't want this prefix to be applied to my custom post type portfolio. In other words, I expect post ...
Pieter's user avatar
  • 117
0 votes
1 answer
2k views

Custom Post Type nest under a normal WordPress Page

EDIT Again, nope it's not impossible, just nasty. Solution below. Trying very hard to get this working. Have tried numerous suggestions here on stackexchange/overflow My goals are to simply select a ...
dtbaker's user avatar
  • 357
0 votes
2 answers
117 views

How to embed a new string in url?

I am creating a custom tours and travel theme in which I have created custom post type Cities, Locations, Destinations and i am using custom permalink structure. /%category%/%postname%/ So now I want ...
Abhimanue Tamang's user avatar
0 votes
1 answer
126 views

Wordpress Rewrite Rule

I have a standard page setup at http://mysite.com/mypage/ I'd like to setup a rewrite rule in my theme functions that takes any URLs such as: http://mysite.com/mypage/helloworld/ <-- Currently ...
David B's user avatar
  • 193
0 votes
1 answer
299 views

Creating a folder structure

My WP site has a members area which they pay to get access to. I want that area to be a subfolder, so something like site.com/premium/nameofpage. I am aware of url rewriting, htaccess etc. Is that ...
BillyMedia's user avatar
0 votes
1 answer
121 views

How to solve this without flushing the rewrite rules for each post query the visitor triggers?

Actually I have the problem that I provide a menu link (predefined in theme) to the latest post of a specific custom post type. I achieve this by the following function … function ...
Circuit Circus's user avatar
0 votes
1 answer
113 views

How to Detect That WP is Using Mod Rewrite or $_GET variables?

I am trying to get WP is using Mod_Write or $_GET for URLs, Because by it, I can generate my own links like: mysite.com/val1/val2 or in a conventional way; mysite.com/?var1=val1&var2=val2 $...
Digerkam's user avatar
  • 219
0 votes
1 answer
6k views

How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?

I created a thread (How to make www. and no www. Go to same site, for all sites?) in the support forums for the WordPress plugin: WordPress MU Domain Mapping. Everything is fine and dandy. I have a ...
Michael Ecklund's user avatar
0 votes
1 answer
69 views

How to show one page with two different templates

I have a page template that I want to be able to show in two different modes: a regular mode and a bare-bones mode, where there is no header, footer, sidebar, etc. My hope is that I can get this done ...
Ed Marty's user avatar
  • 113
0 votes
1 answer
151 views

URL problem: www.sitename.com/blog and www.sitename.com/learn using same WP installation

I'm sure there has to be some way to make this with single wordpress instalation. Posts for "learn" page are tagged with "learn" and I built a custom template that has loop that prints only posts from ...
Benjamin's user avatar
0 votes
3 answers
85 views

how to move another machine or server without dealing with IP

Wordpress website for a small company. i am able to install wordpress in IIS server. my doubt is when installing , i am giving the ip address as "192.168.0.101:87".Everything works fine.I created ...
Muhammed's user avatar
  • 147
0 votes
2 answers
413 views

How do I make WordPress revise an .htaccess file a certain way?

I've learned just a slight bit with WordPress Rewrite API -- just enough to add another rewrite rule for a plugin. The plugin works if installed in the root, but I'm finding that if one installs ...
Volomike's user avatar
  • 1,855
0 votes
2 answers
938 views

Rewriting Image URLs from dynamic to original

Here's the deal: My plugin automatically watermarks images from the WP gallery on the fly using the GD library wherever these images appear. So, I have a physical copy (in wp-uploads) of these ...
Jared's user avatar
  • 3,845
0 votes
1 answer
790 views

Custom url structure - pages under a custom post type

I'm struggling with the structure of my Wordpress site and I was hoping you might be able to give me some advice. The site is for a series of events and the structure is as follows: Gateway (...
Joe Czucha's user avatar
0 votes
1 answer
687 views

Problems with permalinks (.htaccess not working)

I would like to use permalinks but they are not working. Whenever I use permanlinks like /%postname*/ are something else that differs from the default ... I get an 404-error. Calling php_info I can ...
user1099480's user avatar
0 votes
1 answer
689 views

Using custom url parameters in a page

Im trying to create a custom image galleri that retrieves images from posts as can be seen here http://kurdaktuellt.se/galleri/ problem in hand is that I'm trying to make the url somewhat user ...
Breezer's user avatar
  • 147
0 votes
1 answer
3k views

Multiple parameters in a custom post type url rewrite

I have a custom post type called venues currently they display through the url format: http://mywebsite.com/venue/{venue-name} I would like to have the format: http://mywebsite.com/venue/{venue-...
Matt's user avatar
  • 33
0 votes
1 answer
69 views

URL rewrite( I think? )

I have a URL: www.example.com/my_cool_pancakes. When a User goes to this URL, I would like the URL to instead be www.example.com/pancakes. How do I do this? Is this URL rewriting? I have studied URL ...
Roman Epicnerd Sharf's user avatar
0 votes
1 answer
271 views

database not responding on localhost

I'm trying to work on an existing WordPress site on my Mac using MAMP. I've setup a new database using phpMyAdmin and imported the tables from the backup of the online version. I pasted this into wp-...
Gavin's user avatar
  • 1
0 votes
1 answer
2k views

i want to rewrite my custom plugin url

I am Working on wordpress plugin. and i have a form like this $action_url = WP_PLUGIN_URL .'/demo-url-rewrite/include/test.php'; <form action="<?php echo $action_url; ?>" method="get"...
Pranav Gandhi's user avatar
0 votes
2 answers
2k views

add_rewrite_rule and template redirect not working

I have the following pairs: add_rewrite_rule('^questions/ask/?','index.php?pagename=ask','top'); if(is_page('ask')){ $tname = 'add-question.php'; if(file_exists(TEMPLATEPATH.'/'.$...
Paul Dumitru's user avatar
0 votes
2 answers
484 views

Category URL Management

When you keep the category base ( that is you don't remove it by a plug in) WordPress does allow you to browse to your 2 level deep category in two different ways as the example below would ...
Average Joe's user avatar
  • 1,879
0 votes
1 answer
117 views

Wordpress redirection to get url friendly

I want to get url friendly for pass data to page from other page. I explain : I have on i classic wordpress page, url like it : ( example.com/agent/name_agent ) it's url build dynamically. ( ...
Vincent Guesné's user avatar
0 votes
1 answer
449 views

Why wp redirects me to wp-login.php when I visit a rewritten wp-admin URL?

I have this rewrite rule ^dashboard(.*) wp-admin$1 [L] and wp redirects me to wp-login.php when I try to visit /dashboard (even if I am logged in) Any idea why this happen, and how I can solve ...
G.G.'s user avatar
  • 101
0 votes
1 answer
69 views

rewrite file to wordpress

I have in my plugin dir a endpoint.php and need to rewrite like this: http://domain.com/API/endpoint.php This is the code I've used: add_rewrite_rule( 'API/endpoint.php', 'myplugin-path/endpoint....
greenbandit's user avatar
0 votes
1 answer
3k views

Custom Taxonomy Archive URL rewrite

I would like to create an archive page with a list of my custom taxonomies that link to a page that shows posts with that taxonomy relationship. I registered my taxonomy like this: register_taxonomy(...
Mike's user avatar
  • 813
0 votes
1 answer
2k views

Custom Post Type Date Based Archive URL rewrite [duplicate]

Possible Duplicate: custom post types, wp_get_archives and add_rewrite_rule I have a custom post type called "course" and I would like to create a date based archive similar to the default post ...
Mike's user avatar
  • 813
0 votes
2 answers
544 views

custom url - add attachment's id or name after post

I want to link to attachments but through its parent page. /directors/piranha-bar/ shows all of that post's attachments on single.php and i want /directors/piranha-bar/video/name-or-ID/ to still use ...
v3nt's user avatar
  • 1,669
0 votes
2 answers
598 views

Import images from self-hosted to WordPress.com

I'm trying to migrate my self-hosted WP blog to WordPress.com, images included. Originally images were hosted on various image-hosting websites, but I've used this plugin to cache and upload them to ...
Ory Band's user avatar
  • 111
0 votes
1 answer
73 views

custom post archive URL is wrong

I recently found out that I could use the with-front=>false argument in register_post_type(). So I went and changed my custom post type slugs and did a flush_rewrite_rules(). Now 2 of my custom ...
dnagirl's user avatar
  • 297
0 votes
1 answer
2k views

WP-e-commerce (getshopped) - Annoying permalink issue [closed]

i’m using wp-ecommerce (getshopped) and WPML on a website, all pages display correctly when i use the default (/ugly…) permalink structure, but when i try to use the much desired permalink structure /%...
Talbatz's user avatar
  • 380
0 votes
1 answer
370 views

Add extra optional text to permalink e.g. "-with-*"

I've been scratching my head about this one for a while. I have tried to add a hook within WP_Rewrite to ensure that we can pick up pages with a similar structure: /products/product1-with-* /products/...
Hux's user avatar
  • 101
0 votes
2 answers
2k views

modify URL with mod_rewrite or hook

i'm trying to achieve the following: user enters this URL into browser http://mydomain.com/boston/categoryname/postname/ i then want to get the first "folder" and check whether or not it's "...
Philipp Kyeck's user avatar
0 votes
2 answers
2k views

Rewrite custom taxonomy slug - but only parent items

I've set up a custom hierarchical taxonomy called 'region'. So now I have e.g. url.com/region/leeds/ etc. However, I'm now expanding to other countries, so I'm making the region sub-categories of ...
deadlyhifi's user avatar
0 votes
2 answers
3k views

How can I allow trailing slashes on some URLs without a redirect, but not on others?

Here's the scenario. Assume I have a site, wordpress.site, which has the following Permalink structure: /%postname% Assume I then set up the following posts: /post1 /post2 /post3 If someone were ...
Craig Sefton's user avatar
0 votes
2 answers
2k views

Why is home page content not displaying with this rewrite rule?

I am trying to pass a variable from a URL to PHP using mod_rewrite while maintaining standard WordPress functionality. Here's my mod_rewrite rules: RewriteEngine On RewriteBase / RewriteRule ^(\w+)/$...
meeble's user avatar
  • 11
0 votes
1 answer
294 views

Modifying WP URL handing code?

I am trying to use mod_rewrite and modify WordPress' URL handling to allow for passing variables to PHP from the URL while maintaining "pretty permalink" functionality. (on WP 3.2.1) Something like ...
meeble's user avatar
  • 11
0 votes
1 answer
443 views

change url for portfolio image

I am working on champer theme , I add portfolio by guideness of documentation, but when i click on image , its go on another page, but I want to stay in similar page, not changing. how can I do this. ...
omnath's user avatar
  • 1
0 votes
2 answers
5k views

Subdomains pointing to a permalink URL

I have Wordpress (v3.2.1) set up at domain.org.nz/wordpress with a number of pages set up as domain.org.nz/wordpress/services/example. I want to set up a subdomain, example.domain.org.nz to point to ...
Thorned Rose's user avatar
0 votes
1 answer
984 views

How to properly prefix blog post URL's

I want to prefix my blog posts with /news/ and changing my Permalinks to /news/%postname% seems to do the trick. However, I also have a few custom post types and for some reason those URL's are now ...
Luke's user avatar
  • 581
0 votes
1 answer
1k views

How to deal with a GET variable of 'name'?

I'd like to have a custom registration confirmation page live within a WordPress site. I can provide a URL for this page to an external site. When the registration is successful the URL has several ...
Sandbox Wizard's user avatar
0 votes
1 answer
415 views

Can’t use a specific custom URL (slug)?

I’m having some problems understanding an error I’m getting. I have a page which is called “pitch” and as such the URL and the slug should be “pitch” as well, so: www.my-domain.com/pitch/ But when I ...
Mestika's user avatar
  • 770
0 votes
2 answers
443 views

How are rewrite rules applied in WordPress?

How are rewrite rules applied in WordPress? I don't see any rules in the .htaccess file... For example, if I set the address URL to www.example.com, then calls to example.com will 301 redirect to www....
Yarin's user avatar
  • 265
0 votes
1 answer
974 views

Rewrite rules for custom post type

There is a nonhierarchical custom post type "news". /news/ /news/page/2/ /news/post_slug/ Each post has custom field "views". When someone opens post, field's value increased by one. Would like to ...
ilovewordpress's user avatar
0 votes
1 answer
479 views

Custom taxonomy and post type rewrite rules

I'm working on portfolio site, where I need to create a "portfolio" post type and divide posts in it by categories with urls like "/portfolio/category/", so the "category" is the category term. /...
ilovewordpress's user avatar
0 votes
1 answer
3k views

Rewrite rule that wp-login.php?action=register is left alone

Unfortunately buddypress breaks a facebook connect script because of the rewrite rules. It changes /wp-login.php?action=register into /register/ I tried to find where the custom rewrite rule is ...
deltakid's user avatar
0 votes
1 answer
156 views

How to Use metada Value in Url and is it possible? [duplicate]

Possible Duplicate: How to use Post Custom Metadata in Post Titles and Post Permalinks hii i want to know that how can i use my metadata value for post url which i add with my every post in ...
realcoder's user avatar
  • 165
0 votes
1 answer
107 views

How do I get posts to appear at mydomain.com/blog?

I'd like to use WP to manage my whole site, not just the blog. I don't want the blog to appear on the home page, but instead at mydomain.com/blog. What I've done so far under Settings/Reading is to ...
Eddie Rendini's user avatar

1
25 26
27
28 29
41