Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"
1
vote
1answer
77 views
Passing the JQuery string to Worldpress URL
I have already followed the tutorial here: http://www.rlmseo.com/blog/passing-get-query-string-parameters-in-wordpress-url/
But it still doesn't work.
In the function.php, my code is
//decode ...
1
vote
0answers
38 views
Using a page template without a page
Does anyone know if it's possible to use a page template on a URL, even if a page doesn't exist for that page?
When building sites, I create the relevant pages to ensure use of the templates, but ...
0
votes
1answer
42 views
URL Redirect in Wordpress
I am facing problem to redirect some url in wordpress. I need to rewrite following URL:
First URL is like this: http://example.com/news/?news=2 where news=2 is the news id and I am getting this id by ...
0
votes
0answers
40 views
Permalink rewrite to show author's custom post types through author/USERNAME/CPT
I'm trying to hook into the author/NAME/ permalink to allow showing of specific custom post types (CPT).
I'm almost there. Everything works, except paging on CPT request.
e.g. author/USERNAME/CPT/ ...
0
votes
0answers
44 views
Rewrite URL to include custom field
I am using /%category%/%postname%/ permalinks.
Within two custom post types (and only those two), I need to append that URL structure with a third variable which will be from a custom field (provided ...
4
votes
1answer
246 views
How do I add a server-independent external rewrite rule?
External rewrite rules are awesome. They let you define rewrites that don't necessarily pass through WordPress' index.php. This means you can map arbitrary rules to arbitrary files like:
...
0
votes
0answers
139 views
How to change the permalink structure of the default post type
This Custom permalink structure only for default posts looked like the perfect answer:
add_action( 'init', 'my_new_default_post_type', 1 );
function my_new_default_post_type() {
...
0
votes
1answer
1k views
attachment url rewrite
i want to change the address of the file attachment link to wordpress [example: http://www.sitename.com/category/sub-category/article.html/attachment/image etc.]. i did research on the subject ...
1
vote
2answers
643 views
Custom permalink structure only for default posts
Does anybody know how to modify the url struct only for the single post page?
When I go to a post page, the url should look like: example.com/xxx/my-post. All other urls (with the exception of the ...
0
votes
2answers
314 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 ...
0
votes
1answer
77 views
ow to change cutsom page url of wordpress site using htaccess
i need help in httaccess rewrite of a wordpress site. i have url like below
http://thewhiterabbit.dk/beta/steder-detail/?id=floos
i want it to be like
...
2
votes
2answers
1k views
Rewrite Rules for Multiple (more than 2) Taxonomies
I am using woocommerce and have some 'product attributes' which are just a taxonomies.
I have the following taxonomies:
pa_color
pa_material
pa_style
the pa_ stands for product attribute and it ...
1
vote
1answer
536 views
Auto generate rewrite rules for multiple taxonomies
so i'm back with rewrites... i am looking for a more automated solution.
i stumbled across this on the interwebs:
/**
* Generates all the rewrite rules for a given post type.
*
* The rewrite ...
2
votes
1answer
76 views
Rewriting URLs in Wordpress
I am trying to solve a rewrite problem but don't fully understand how to read the below code.
I believe the event/industry/(.+)/?$' is stating the format I want in my new url after rewritten, which ...
3
votes
1answer
82 views
Creating custom permalink structure for languages
I've written a simple multi-language system, whereby clicking on a flag icon sets a one year cookie containing a two letter language code (e.g. nl, de, etc).
I hook into the wp action to read the ...
3
votes
1answer
1k views
Pretty URL with add_query_var
I'm trying to add a 'sub post' to each post on my site, eg
site.com/product-one/changelog
site.com/product-two/changelog
site.com/product-three/changelog
This is the code I'm using atm, which I ...
0
votes
1answer
65 views
Rewrite rules for custom posts types
So I created a new post type 'quote'.
Basically I want to change all quotes URLs to domain.com/quotes/ID since as it as right now (/?quote={xxx}) could get pretty long, and since this post type is ...
2
votes
1answer
912 views
Custom Permalinks for Blog Posts Only
I know this is a fairly common topic around here, but I can't seem to figure out a solution to my particular case from reading similar threads.
Basically, my permalink structure needs to be ...
0
votes
1answer
50 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 ...
0
votes
1answer
85 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 ...
0
votes
1answer
125 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 ...
0
votes
1answer
36 views
Overwrite URL on blog posts
I would like to overwrite my URL on single blog posts.
At the moment my posts are displaying as www.mydomain.co.uk/post-title, however I would like them to be as
www.mydomain.co.uk/blog/post-title ...
0
votes
0answers
52 views
How to add a custom permalink to posts that have one specific tag or category?
sorry if the title doesn't explain well what I want... I'll write an example. I have set one Wordpress site with this permalink settings:
/%postname%/
That's what I need for mostly of the posts, but ...
2
votes
2answers
5k views
How to change “wp-admin” to something else without search-replacing the core?
for example: foobar.com/wp/edit instead of foobar.com/wp/wp-admin
How would I do that?
I've tried using this in htaccess but it won't work:
##### ABOVE THIS POINT IS ALREADY INSERTED BY WORD PRESS
...
-1
votes
1answer
63 views
Display posts in page url structure [closed]
I wonder if it is possible to "move" all posts into the page structure.
Reason is that it would be great SEO but not sure what problems it would cause with Wordpress it self.
Currently I have a ...
2
votes
2answers
232 views
Rewrite the base-url for single posts
I want to append the URL when viewing a single post.
For example when im on a post I want the url to be something like: example.com/mypage/mypage/single-post-article
The default url is ...
0
votes
1answer
52 views
Rewrite URL variable to custom path
I am passing to my url some variables to display latest posts, most viewed etc.
http://website.com/?r_sortby=highest_rated
I am wondering how to create a custom path for it instead for SEO purpose ...
0
votes
2answers
58 views
subdirectory install breaking existing links
I've had this issue several times now. While building a site, including some content, I keep wordpress in a subdirectory (say, /wordpress/). When putting it live, I move/copy 3 files out of the dir ...
1
vote
0answers
54 views
Incorrect 404 for pages when using permalink, a static front page, and posts page
I am having an issue with my permalink setup, which I think has to do with my setup, rewrite rules, and more.
Under Settings->Reading, we have a static Front Page set as well as a Posts page (Home ...
0
votes
1answer
56 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 ...
2
votes
2answers
1k views
Filtering categories in the permalink structure
Using /%category%/%postname%/ for the permalink I get a URL string of all the categories that the specific post is included in.
I would like the categories in the url to be filtered down to only one ...
0
votes
1answer
39 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
...
0
votes
0answers
43 views
Use structure tag in custom post type url format permalink [closed]
Is it possible to use structure tags in custom post type rewrite slugs?
add_action( 'init', 'test1' );
function test1()
{
register_post_type( 'test1', array(
'label' => 'test1',
...
1
vote
0answers
57 views
Changing URL scheme, mod_rewrite not helping
We're trying to move away from the /YYYY/MM/DD/Post-Title URL structure without breaking links that are floating around on the internet. The mod_rewrite rule is fairly straight forward -
RewriteRule ...
0
votes
2answers
46 views
Is Wordpress API visible from PHP file called in htaccess
I'm trying to add some rewriterules in the .htaccess file to deal with hotlinked images - specifically I want to add the URL from the post where the image appeared to the header location information ...
0
votes
1answer
50 views
URL Variables in a Certain Page
I have a product loop in a certain page,
and I want to filter its categories via URL such as:
mysite.com/products // Shows all products
mysite.com/products/sculptures // Shows only sculptures
...
1
vote
0answers
48 views
Rewrite permalink for specific posts
A client wants certain posts to have a custom permalink structure. Client is running WordPress 2.8.5 and upgrade is not currently an option, so I can't use a custom post type. That being the case, it ...
2
votes
3answers
125 views
Defining a default page for custom post type
Let's say I create a custom post type called 'new projects', with capability type = page and slug = 'projects'.
Let's then say that I create a new page of type 'new projects' and name it 'my new ...
1
vote
1answer
74 views
Disable page access via query vars
I'd like to disable the default WP query vars (p, attachment_id, etc...), and make the pages only accessible by URI Permalinks.
I've taken a list of variables from WordPress Query Vars and created a ...
3
votes
1answer
160 views
Add rewrite rule in plugin: with .htaccess in plugin folder or using WordPress functions
I need add a rewrite rule in my plugin, and distribute it with my code. All works fine if I put the rule in the .htaccess in the WordPress root folder, but I need distribute the plugin with my rule.
...
2
votes
2answers
73 views
Rewrite numeric ID parameter for hierarchical custom post type
I've been banging my head against a wall on this one for a while but I'm not quite sure from all the tutorials I read how to see why this isn't doing what I expect.
I have a page called ...
2
votes
0answers
69 views
How to change ?lang=cn into /cn/
I'm trying to add languages to my wordpress driven website and i installed xili-languages plugin. Unfortunately it uses lang param to differentiate between languages and i rather have seen something ...
0
votes
1answer
42 views
Monkey Man Rewrite Analyzer says my rule will trigger but it doesn't [closed]
I installed Monkey Man Rewrite Analyzer, i got a rule installed, it shows in the list, if i test it with monkey man it says it will fire but it doesn't in reality, whats wrong?
add_action('init', ...
0
votes
2answers
816 views
Own code on index.php wordpress theme file, help with the rewrite rules
Hey there, I am sooo frustrated, asked and asked and can't seem to get an answer. Pleaseeeee help, I'll be very very clean whith my problem. I'll give hundreds of bears to the one who can help:)
I ...
3
votes
2answers
275 views
Preserving $_GET parameter while using custom Rewrite Rule
This third party add-on plugin for Gravity Forms allows you to edit existing posts via the front end when you embed a form in your chosen template.
All you need to do is append the GET ...
1
vote
1answer
341 views
Need help with simple rewrite rule (shouldn't this be easy?)
All I need is a rewrite that will change example.com/anyphrase into example.com.
Here is what I am using:
RewriteCond %{HTTP_HOST} ^example\.com
RewriteCond %{SCRIPT_FILENAME} !wp-admin
RewriteCond ...
2
votes
1answer
107 views
add new permalink structure from dynamic page
I created page "play" url: http://localhost/myweb/play and inside of page "play" I include PHP code to make the new search from outside Wordpress.
And all worked, if I search from my page "play" the ...
0
votes
1answer
92 views
How to create download links based on Custom Fields with Rewrite API
For me this is quite hard to do, but I guess that this could be easily done by an expert. :)
Let's suppose I have a post, which is a custom post type resources, with the following data:
Post Slug: ...
1
vote
0answers
42 views
Flat category URLs but retaining hierarchy?
I have the categories as follows:
- Beauty
-- Hair
-- Makeup
WP expects the URLs to be:
/beauty
/beauty/hair
/beauty/makeup
Is it possible to have the following links while still keeping the ...
0
votes
1answer
37 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 ...
