Looks like this needs some work to work with newer versions of WordPress and PHP.
Will be happy to take this over from you if you like?
]]>Fatal error: Uncaught Error: [] operator not supported for strings in wp-content/plugins/rewrite/options/easy-options.php:171
]]>Dear takien, I need your help. On this page I want to get a bbpress forum running, so I can finally switch to SSL. The old forum does not work with SSL unfortunately, but that is not so important because it should be disabled anyway. If I disable rewrite the forum works but I have a lot of 404s on the rest of the page, and if rewrite is enabled bbpress will not work. Do you have an idea why that is, I would be infinitely grateful for your Hile. I do not know much about URL rewrite in the WordPress section and am really dependent on help. The bbpress support I have been keeping up with the topic for weeks and now I hope that I reach you. Sunny greeting Daniel
Links:
Rewrite Rules that Match and matter:
https://s1.bild.me/bilder/110417/876280725-04-_2018_16-16-13.png
https://www.ayurveda-portal.de/test-forum (with 404s)
]]>I created a rewrite and now want to delete or edit it. How do i do this?
]]>Not sure if anyone else is experiencing this, but it looks like Rewrite breaks after the 4.7 upgrade. Does any one else have this problem, or is it something else on my site?
]]>Hi,
is this still working in the latest version of WordPress (4.4.1) ?
Thanks
]]>Good evening!
On my webserver there are three rewrite rules backups stored.
Now I need them on another webserver to be used.
Screenshot: https://prntscr.com/86z035
But the big question there is, where are these three backup files stored?
I searched through the entire www folder, but there couldn’t be found a file named “original” or like the other backup names.
I also browsed the wp-content/plugins/rewrite folder, also no backups there.
So, where are they stored, please?
Good evening & Regards
]]>Hello everyone,
Could someone explain me the mechanics of post_link filter and rewrite rules?
Once the permalink is modified through a post_link filter, is the updated permalink be passed through the rewrite rules again?
Considering these rules
$regex = '/dl/.*/?';
rewrite = 'index.php?pagename=dl';
add_rewrite_rule( $regex, $rewrite, 'top' );
$regex = '/(en|fr)/dl/.*/?';
rewrite = 'index.php?pagename=dl&lang=$matches[1]';
add_rewrite_rule( $regex, $rewrite, 'top' );
The URL is https://www.next.ca/dl/aa/aa/00/ri/00/?lang=fr
with a post_link filter, the updated permalink is
https://www.next.ca/fr/dl/aa/aa/00/ri/00/?lang=fr
(You will recognize Polylang’s doing)
Will the updated permalink be passed through the rewrite rules again and be caught by second rule (and index.php?pagename=dl&lang=fr be served)?
Or is it another mechanism?
Thanks in advance for your explanations.
]]>Hi there,
I have a rule set up:
your-festivals/([^/]+)/? -> index.php?name=your-festivals
and it’s matching the regex and taking the user to the correct page, but it’s also redirecting, and the new URL is shown in the address bar instead of keeping the old one.
Isn’t it supposed to be keeping the old (SEO friendly) rule there?
Thanks
]]>Hi Takien,
I’m trying to understand if your plugin can solve my problem. Here’s the scenario:
Quick Background
My site is https://torontoseoguy.ca/. As you can see, clicking any of the nav menu links simply takes the user down to a particular section of the homepage (with the exception of the “Blog” link, which opens in a separate page).
You’ll also notice that as you scroll up or down the page, the blue underline moves to the appropriate nav menu link based on the section you’ve scrolled to.
The above functionality was created via a combination of my WordPress theme’s built-in capabilities. a plugin, and some custom development by a developer I hired – and I love how it works.
The Problem
Now here’s the problem: There are many situations where either I or others will post a link to my homepage and append a tracking URL. For example, here’s one that my MailChimp campaign uses to track my clicks in Google Analytics…
As you can see, when you click the above link – or any link to my homepage that is in the format torontoseoguy.ca/?anything – all of the nav menu items appear with the blue underline, which is confusing to users, looks unprofessional, and doesn’t convey a good first impression. The only way to get rid of the multiple underlines is to click the logo link to the homepage at the top-left.
Solution?
I was thinking that a possible solution is to rewrite or 301 redirect any links with “/?” after my domain (though as a non-developer I’m not clear on the distinction between a rewrite and redirect). I believe this would solve the nav link underline issue, but it creates one other issue for sure and another potential issue that I’m not sure about:
1) First,it would cause all internal site searches (using the default WordPress search functionality, accessible in my footer) to be redirected to the home page, as the URL format is:
https://torontoseoguy.ca/?s=searchterm
Would there be a way to rewrite/redirect any URLs to my homepage that contain /? but exclude any URL requests containing “/?s=”?
2) Second, it is important to me that any rewrites/redirects don’t prevent me from tracking the original referrer in Google Analytics – which may be from social media, another domain I write a guest post for, etc.
Can your plugin help me? Thanks for any insight you may be able to provide. Happy to donate for any help. Thank you!
]]>Hello,
I already have done this rule :
Rule pattern :
s=Bière([^/])des([^/]+)Ours
Match :
s=Biere+des+Ours
The goal is to rewrite
domaine.fr/?s=Bière+des+Ours in
domaine.fr/?s=Biere+des+Ours
And the rule above works for :
domaine.fr/s=Bière+des+Ours
but not for
domaine.fr/?s=Bière+des+Ours
have you an idea ???
Thank you very very mutch
]]>I have a complete novice question.
I am having difficulty understanding the syntax
I am trying to change /fetch/aws/mycraft/skins/* to the “/minecraft_skins.php”
However this does not look like any of the other entries in the table.
]]>Hi
I have created a rule if string contains alphanumeric and dash only.
order/([a-zA-Z0-9-]+)$ should be redirected to index.php?page_id=485&list=$matches[1]
Eg: order/BB-1234 should be redirected to index.php?page_id=485&list=BB-1234
But it is not working. Is it possible to see the error log of it.
Thanks & Regards,
Sejal Gada
I have several posts with last-minutes for those who are looking for a holiday home. I want to make a rewrite-rule to one post that contains up-to-date information, others are than out-of-date. But I can’t get it to work.
The targeted post-url = https://www.vakantiehuisverhuur.eu/2014/08/last-minutes/. That one I will keep up-to-date.
How to get (i.e.) https://www.vakantiehuisverhuur.eu/2014/06/last-minutes-en-topaanbiedingen-per-28-6-2014/ to that targeted post-id?
I tried several options of the following:
^last-minutes/([^/]*)/([^/]*)/?$ index/php?page_id=10925
Good to know: I am not familiar with rewrite-rules syntax.
I would appreciate some help!
Regards,
Rudolph Smits
In installed the plugin. Went to the “Rewrite” tab and saw all the rules. Did not click anything.
Went to the Permalinks and changed something there.
Back to the “Rewrite” – everything is blank. No rules. And obviously, nothing works in WP.
Found “disable” in the Options tab, and it helped restoring the default rules. (I guess I could do that by removing the option in the table, but thanks for that checkbox ??
Uninstalled the plugin. Consider it not ready yet.
Thank you!
Hello,
I love the plugin as it gives me ability to create custom rules. HOWEVER I hate that everytime i add a new post type or add a plugin that I need to manually create all the rules for it. Is there a way to import new rules/flush new rules in for post types that arent defined yet?
For example I have been running Rewrite for over 6 months now, I have lots of custom rewrite rules. I added bbpress today, which adds lots of custom rewrites. I am now trying to figure out all the rules to manually add them.
Is there an easier way or way to import new custom post type rules?
Thanks.
-Dave
I have created a rule that will rewrite something like:
https://mydomain.com/civicrm?page=CiviCRM&q=civicrm/event/register&reset=1&id=5
to:
https://www.mydomain.com/civicrm/event/register-5
In theory, my rule is correct, but it’s not working when entered into the Rewrite plugin. Here is my rule as entered:
Rule Pattern: ^([^-]*)-([^-]*)$
Match: /civicrm?page=CiviCRM&q=[1]&reset=1&id=[2]
I can’t figure out what I am missing here. All I can figure is the original URL is already being rewritten, so the additional rewrite is confusing it.
]]>Hi, I just started working with your plugin and I really like it. esp that I do not want to get into writing code for wp. I am having a problem escaping especial characters with it though. Any idea why for example \. does not escape dot?
i want to for example rewrite foo.php to foo, but when i write a pattern like ^foo\.php/?$ it does not match anything, and it takes me to the default page. Any other tricks to escape a character?
]]>Hi could you help me out with a sample rewrite rule for my situation please?
I am hosting WP on a windows shared host and WP works ok, but cannot change the Permalinks from the DEFAULT setting (eg. https://prosale.co.nz/wordpress3/?p=123) to a custom structure.
Could I use this re-write plugin with a rule to change URL permalink to “www.prosale.co.nz/wordpress3/page name and what rule would I insert? Any idea? Thanks, Groggo
Hello,
I have a custom script and I want to integrate it withing WordPress. I got it to work properly on a subdomain to test it but my URLS look like shit…
“zomerbanden” is a page within WordPress
https://banden.jvandongen.com/zomerbanden/?merk=TY&cat=ZO&band=1874
and I want them to be like this:
https://banden.jvandongen.com/zomerbanden/connexion
so ?merk=TY&cat=ZO completly gone and &band=1874 would be “connexion”
If this is not possible then this is ok too:
https://banden.jvandongen.com/zomerbanden/tyfoon/zomer/1874
I dont know if your plugin is able to do this but if it is… Can you help me to do it? I searching for days now to fix my URLS but cant find a solution… mod_rewrite rules did’nt the trick either:(
Thanks in advance:)
Kind Regards
Joep
]]>How can I rewrite “author_name” to “kategorie” ?
]]>I think than your plugin is superb, but need a little add-on.
I change your Flush rules button, because I think is not necessary, almost for me :-(. I change it for Restore default, to get the default rewrite rules of WordPress and start again with new rules. I think than this is necessary because when the plugin is active there’s not option to do this, without deleting the rewrite_rules_save in wp_options table.
To do this I just add a line to this code:
if(isset($_POST['rule-flush'])) {
$wp_rewrite->flush_rules();
$message = 'Rule flushed.';
}
And change with this:
if(isset($_POST['rule-flush'])) {
$wp_rewrite->flush_rules();
update_option( 'rewrite_rules_save' , $wp_rewrite->wp_rewrite_rules() );
$message = 'Rule flushed and restored.';
}
And change this line:
<input id="rule-flush" name="rule-flush" type="submit" class="button" value="Flush rules"/>
With this one:
<input id="rule-flush" name="rule-flush" type="submit" class="button" value="Restore default"/>
Please add something like this in the futures updates.
Thank’s a lot for your great job.
]]>Hi,
very good plugin. For a new plugin it also has a very good quality. But I’ve got some questions left.
Although I’ve enabled the option “… to bypass rewrite from this plugin and use default WordPress rewrite instead”, I can not see all entries which are stored in option ‘rewrite_rules’.
I add a rewrite rule using another plugin and after flushing it works properly. But your plugin does not show the new rewrite rule.
The option to backup the rewrite rules is very comfortable. But currently I’m not sure if this backup also restores the WordPress rewrite rules, too (content of option ‘rewrite_rules’). Or does it only restore the rewrite rules this plugin is using (content of option ‘rewrite_rules_save’)?
At last a feature I would like to see in this plugin. Is it possible to add a third column which displays the ‘class’ of the rewrite rule as in plugin ‘Rewrite Rules Inspector’?
]]>