This will do it:
RewriteEngine on
RewriteRule ^test/test-post/index.shtml$ custom/custom.php?cat=1 [L,R]
The [L]
flag causes mod_rewrite to stop processing the rule set.
Use of the [R]
flag causes an HTTP redirect to be issued to the browser.
Related Posts:
- Apache Fallback instead of add_rewrite_rule
- Redirect to another page using contact form 7? [closed]
- Change permalink structure specific category
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- Static variable and add_rewrite_rule?
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Accessing data from a non-WP database/table within a page content
- WordPress blog post url on category page
- Changing layout with wp_customise
- WP dynamic featured image – Can’t get second featured image url
- Converting HTML Template to WordPress Theme
- Extending the WP_Widget_Text class
- How to change home or site url using action hooks or filter?
- Performance impact of rewriting WordPress URLs
- 3 blogs same installation, without WP MU
- Selectbox in admin panel function linking to CSS
- Can I install/embed WordPress on a ‘single page’?
- Two Different Links for Same Product – WooCommerce [closed]
- Was told to change the .htacess file form .html to .php so this would work properly
- How to check if a meta value has already been assigned to any user?
- How to hide products that do not have an image from a slider carousel for an ecommerce webpage?
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- filter default query to show just selected level of child pages in wordpress
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Trying to build simple deposit code that hooks into woocommerce
- How to pick the default selected value in wordpress dropdown?
- Changes in permalink structure in WordPress and how to apply to in-site links
- WordPress Persistent connection rule does not work for “posts”
- How to change redirection route to a php page for making it only accessible by logged-in members?
- Add New User, extra fields which are required?
- Append query string to all URL’s
- user_profile_update_errors hook not executing
- Send an email to specific adress when button is clicked?
- Customizer: active_callback and sanitize_callback incompatibility?
- how to combine wordpress htaccess on my root domain + php on subfolder
- custom rewrite rule help! Custom rewrite rules not applying to custom post type
- Saving and Restoring a Canvas on A Individual User Basis
- Redirect specific user role to specific site after login?
- Send multiple attachments with wp_mail in PHP
- WordPress admin pointers tour bug?
- subdirectory index.php is not working
- Extend plugin Class through functions.php
- How to add a do_action on refreshing of WP customizer?
- Customize position of social icons in upme plugin [closed]
- Weird 404 URL Problem – domain name being placed at end of urls
- How to get the value of input hidden html from text editor to custom page template?
- Make a list of sites for each user in WPMU – switch_to_blog (display in SITE_ID: 1)
- Menu jumping when calling it via PHP
- Output Video Download Link in template
- Modify custom field input data before creating a new post
- Output custom field value to post string
- Loading index.php contents which located outside blog folder for post single page
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- Media Upload , file name changed automatically
- Create custom permalinks to show Custom Post Type’s relationship?
- Replace shortcode in substring
- Custom posts in different columns style
- Need help enqueueing webfonts
- WP & Server Speed [Teacher Question]
- need help with existing code showing subpages
- How do I add a custom css to all posts without affecting homepage css? [closed]
- how to show only specific category for a template
- Custom Background by Page IDs
- WordPress add_rewrite_rules for custom URLs ending in .html
- Advanced Custom Fields not displaying
- How to get private property in parent class into extended class?
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- “operation successful” message
- Exclude posts with specific metadata from search?
- Change order of custom submenu link in WP Admin?
- Underscore – Self hosted fonts
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- Hook called before text widget save
- Add data-id attribute to child page links
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Troll the hackers by redirecting them
- Warning: Illegal string offset on theme options page [closed]
- Clickable image link sends people to wrong URL
- customize wordpress database error page
- Display Youtube Time Automate from Key
- Echo title attribute php
- How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- Create page template via functions.php?
- str_replace with the_content is not working
- How to override url params with rewrite rules vars?
- How to create a field in customize and show that in header.php?
- Where is the PHP code generating an element?
- Seo Friendly Filter URLs
- Basic wpdb update question
- How to allow download url redirection only if user logged in WordPress site?
- How to include custom PHP file both in header and footer files
- How to disable all logins except Network login in WordPress Multi site?
- Check class_exists before class definition / Doxygen problem
- Ajax search shows all results when user empties input?
- Extract links from content
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]