The mod_rewrite module uses a rule-based rewriting engine, based on a PCRE regular-expression parser, to rewrite requested URLs on the fly. By default, mod_rewrite maps a URL to a filesystem path. However, it can also be used to redirect one URL to another URL, or to invoke an internal proxy fetch.

learn more… | top users | synonyms

0
votes
0answers
25 views

Rewrite a 'page' URL based on query string parameters?

I have read several article here but I can't get out of this problem. For some reason we need to generate dynamically some page that represent our catalog. I need to change an url like this ...
0
votes
0answers
14 views

Rewrite URL of a page which is child of a Custom Post Type

With the plugin Types I've created a hierarchical custom post type "journeys", and then I set that normal "pages" are child of "journeys". I've created a "journeys" post called "My First Journey". ...
0
votes
0answers
25 views

Loading index.php contents which located outside blog folder for post single page

I'm creating blog page as WordPress for my static PHP website. When blog page URL changes to pretty permalink (example.com/blog/my-post-page), loading contents (not redirecting to index.php, only ...
0
votes
2answers
97 views

Redirect homepage /page/1/ to /blog/page/1/

After switching from the homepage displaying latest blog posts on urls /page/1/ /page/2/ etc to a static front page with the posts displayed on /blog/page/1/ we would like to redirect the original ...
0
votes
0answers
51 views

URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”

I have created a custom user meta = shop_name in User Profile and custom post type gallery The default URL of the post is http://localhost/gallery/%gallery% which i have modified to below given URL ...
0
votes
1answer
109 views

htaccess mod_rewrite not working

I'm pasting my full htaccess file, for clarity, as to be honest, I'm not entirely sure if I have to include my non-default directives inside the <IfModule mod_rewrite.c> bits or separately ...
0
votes
1answer
578 views

Wordpress Page Not Found if Permalink Settings is Postname

Uploaded code on staging server. in localhost everything is working well but on staging I can login to admin pabel but can not see any page on frontend. When any page is accessed it says The requested ...
0
votes
0answers
51 views

RewriteRule directive not working without [P] flag

I need to rewrite some URL's, but I ran into strange problem. For some reason RewriteRule directive only works if I use proxy flag, for example: RewriteRule ^foo$ /www_dev/test/page2-2/ [P] works as ...
1
vote
0answers
252 views

mod_rewrite doesn't work as I want even with JSON API Plugin disabled

I've been asked to upgrade the codebase of a Wordpress website, which exposes a small set of APIs using JSON API plugin. The Wordpress installation is not in the root, but in a secondary folder: ...
0
votes
0answers
189 views

Subdomain-multisite with root blog in www.domain.com in Nginx

I have WordPress multisite running on a LEMP stack in a Laravel Homestead instance. I installed the MS network using subdomains inside a domain domain.app. I'd like the domain.app be accessible only ...
0
votes
0answers
39 views

Custom archive page and htaccess mod_rewrite

I have created custom archive page gumball.php which can handle multiple categories or tags based on URL. For example: xyz.com/categories/gumball.php?categories=category1+category2 will display ...
0
votes
0answers
27 views

mod_rewrite Wordpress url change

I want to handle following specific url: www.testing.com/onboard/uehtietfmretvbcuymwvrbqtmvrktkqtrycitfqtvbiutfwkqeyfktwbcuhtwchtmihy1 (this will be the url in browser) to ...
0
votes
0answers
10 views

mod_rewrite issue

I am having problems all of a sudden with images not displaying. If I deactivate mod-rewite in .htaccess then images come back but I can no longer access post page permalinks having to resort back to ...
0
votes
0answers
26 views

Wordpress internally rewrite rule challenge

Questions 1: I work on wordpress website for a client. But the client like to have a deep level url structure. The custom post type can be from level 1 to unlimited levels in the url structure. ...
0
votes
0answers
81 views

htaccess url rewrite within WP installation

I want to use one of my subdomains to rewrite urls and finally forward to an origin extern domain. Example: goto.mydomain.com/1saKCA3 -> externdomain.com/1saKCA3 I already tried to implement the ...
0
votes
1answer
243 views

What to do when WordPress posts on a new server return an error 404

While I was configuring a Ubuntu 14.04 LAMP server yesterday I ran into a rather mysterious problem. After copying the site's files and MySQL database, verifying proper apache2 configuration ...
0
votes
0answers
84 views

.htaccess restrict subdomain by IP - Wordpress Multisite

I'd like to redirect traffic away from a subdomain install of Wordpress Multisite unless it's coming from a specific IP address/range, and without affecting the root domain traffic. Is this possible? ...
0
votes
0answers
35 views

local Wordpress installation with Xampp permalinks issue

I know this question might be asked before but it seems that nothing helped. I have a local Wordpress installation and try to use permalinks. What I did in my XAMPP was to open the conf file and ...
0
votes
1answer
82 views

Rewriting a date hierarchy into a 'yyyy-mm-dd' slug

I am building a magazine website with an issue custom post type. The slugs for each issue follow the format YYYY-MM-DD according to the issue's publish date. Currently the permalinks are set up as ...
0
votes
2answers
182 views

Wordpress .htaccess rewrite for custom template

I am trying to convert a website to WordPress. The URLs in use are currently in the format: http://www.example.com/database/44/category/short-item-description.html To display items ...
1
vote
2answers
390 views

Only default permalink is working mod_rewrite enabled

My problem is in my wordpress site only default permalinks is working.. When I change permalinks all pages become not found.. only home page is showing. When I change permalinks to postname .htaccess ...
0
votes
2answers
512 views

Simple seo-friendly custom $_GET url rewrite with htaccess

I have this url: http://sitename.com/?game=runescape Is it possible to modify the htaccess file or rewrite the url via Wordpress to become like this: http://sitename.com/game/runescape
1
vote
2answers
145 views

Why does Wordpress redirect when I separate wp-core and wp-content?

I'm trying to setup my Wordpress projects so that I can have http://www.example.com/ as my site URL, say mapped to /var/www/vhosts/www.example.com/ and in there, I would like to use the following ...
0
votes
1answer
239 views

WP is ignoring .htaccess rewritten URL

I have two domains being served from the same WP install. edit: not multi-site In wp-config.php I have define('WP_SITEURL', "http://$hostname/wordpress"); etc. The two domains will have similar ...
0
votes
1answer
97 views

how to exclude admin page from add_rewrite_rule in wordpress

I'm trying to add the following rewrite rules: add_rewrite_rule('([A-Za-z0-9])/([A-Za-z0-9])', 'index.php/product?subcategory=$1&product=$2', 'top'); add_rewrite_rule('([A-Za-z0-9])', ...
0
votes
0answers
185 views

Only homepage working correctly, 404 error on everything else

I've been developing wordpress based websites for some time now, and i built one for my company's own brand, it worked with no problem at all for ages, but now for some reason, i can only get the ...
0
votes
1answer
43 views

Wordpress rewrite question

I am new here and have a question about URLs in WordPress. The very front-facing portion of my website uses WordPress just so I can use the CMSs and blog for my SEO. I have a real estate portion of ...
0
votes
1answer
924 views

Facebook sharer and parameters in URL

So after a lot of troubles (and thanks to this answer) I managed to make a GET parameter look better in URL, from www.url.com/mypage/?id=123 to www.url.com/mypage/123/ I hoped that would solve the ...
0
votes
0answers
149 views

customize urls displayed by previous_post_link and next_post_link

I am using the below code to display my next and previous links in single.php: <div class="nav-previous"><?php previous_post_link( '%link', '<img height="34" src="' . ...
0
votes
0answers
46 views

.htaccess not working in Wordpress

I'm trying to make use of the post name permalink so that visitors can access the page created by the plugin that I'm using. I've already checked phpinfo() and mod_rewrite is listed under the loaded ...
1
vote
1answer
304 views

Removing subcategories from permalinks [duplicate]

I run a small news site with tens of thousands of entries. I'm currently importing all of these into wordpress by rebuilding our old CMS into wordpress. So far, everything is coming over smoothly. ...
0
votes
0answers
65 views

Custom Rewrite for Profiles

I'm currently trying to modify my rewrites to allow for an additional URL segment e.g. http://example.com/vendors/username/ by default WP allows for additional numeric segments but everything else ...
0
votes
1answer
422 views

Localize URL bases

I run a non-English blog. I love that WordPress has been translated to Spanish and currently I use the Spanish translated version of WordPress. One thing that I'd really like to change is the URL ...
-1
votes
1answer
57 views

Permalinks is not working in my wordpress setup

I am newbie to wordpress. I have created a site using wordpress and WAMP stack. In my Apache i have enabled mode_rewrite , so my site is showing permalinks perfectly. Now i have hosting provider of ...
0
votes
2answers
30 views

Access posts while mod_rewrite is broken

On my wordpress installation mod_rewrite (e.g. the permalinks) is temporarily broken. For debugging I want to access the formerly "prettified" page mydomain.tld/page/2. What is the old GET parameter ...
2
votes
2answers
539 views

Should I enable FastCGI on WordPress?

I am looking at my server settings and these are as follows: WebDav : active FastCGI : inactive SSL support : active Perl as Apache module : CGI-Programm PHP module : ...
0
votes
1answer
281 views

Use the category name instead of category slug in permalinks

How to create a permalink structure which finish by: /category-name/post-name/ Instead of: /category-slug/post-name/ By default, Wordpress is offering %category% tag strucure as "A sanitized ...
0
votes
0answers
361 views

Add-on domain works in Wordpress but links still lead to subdomain

I know this looks like a common question, and I assure you I've tried a bunch of responses, but none seem to work in my case. I'm a Wordpress noob so I might be making some basic error which I can't ...
0
votes
1answer
78 views

Function to rewrite URl in Wordpress

I need to rewrte this URL http://example.com/news/?news_id=2 to http://example.com/news/2 where news is the page and 2 is the news_id I have added following code in functions.php: function ...
1
vote
1answer
754 views

mod_rewrite loop, redirecting http to https on certain section of wordpress blog

I'm trying to rewrite 3 sections of a wordpress site to https if they are accessed over http: /cart/ /my-account/ /checkout/ As well as these rewrite's worpress has added a rewrite to remove ...
1
vote
0answers
148 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 ...
3
votes
1answer
129 views

Change permalinks for posts but not for custom post types

Currently my permalink structure for posts is domain.com/post-title I'm using a static front page and a "blog" page for posts. I'd like to to change the permalink structure for posts, tags and ...
0
votes
1answer
154 views

Custom domain for sub-section of parent website

While this topic could be considered a general web development item, I'm using WordPress, so I need to find some way to do this within WordPress and without breaking it. I realize this is a deep ...
2
votes
1answer
243 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 ...
1
vote
2answers
597 views

permalink results to “page not found”

Whenever I change my permalink option from the default to /%postname%/, it results into my page cannot be found. Wordpress would complain that it cannot modify the .htaccess (because there was none), ...
0
votes
1answer
69 views

Types plugin breaking because of server configuration

I have tested this on three different hosts, using a number of different versions of both Types and WordPress, and I believe I've narrowed it down to my host (Firehost) setup, which they recently ...
1
vote
2answers
105 views

a one-off rewrite rule

I have one page that I need to change the URL for. Currently, the page resides at example.com/departments/human-resources/ (human-resources is a sub-page of /departments/ ) My client wants to ...
1
vote
1answer
360 views

ReWriteRules and WordPress Multi-Sites with Sub Directories

I'm having a diffucult time getting the ReWriteRules and URL structures setup for a Wordpress 3.4.2 (latest version as of this post) blog with multi-site enabled. www.ourdomain.com/ is the homepage ...
0
votes
2answers
281 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 ...
0
votes
1answer
65 views

WordPress on a subfolder but accessible from root

I've searched quite a lot without finding a solution. I have a wordpress blog in /_wp and something else in /other What I'm trying to is that every request gets redirected to the WordPress. Except ...