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
- How to create custom 401, 403 and 500 error pages?
- Why have on every line
- WordPress and event-driven programming – what is it about?
- PHP – redirect https to http and www to non-www
- Admin Bar (Toolbar) not showing on custom PHP file that loads WordPress
- Custom post type column which compares dates?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Bypass .htaccess when using download_url
- Limit the Excerpt field in WP-Admin in words
- How can I run a .php file located in my site’s root folder?
- Custom Loop Pagination on WordPress
- delete an array element when its date expires
- How to run multiple websites from single WordPress setup
- WordPress-site can be reached on x.x.x.x/index.php – but not directly on the IP without index.php
- Wrap First Character after in a tag
- How do I implement a .diff changeset from core.trac.wordpress.org locally?
- Random Default Avatar Function
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- Customizer: Output default value in Customizer CSS
- How to add just one specific page to widget without plugin?
- Taxonomy linked to pages
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Converting HTML Template to WordPress Theme
- Can I install/embed WordPress on a ‘single page’?
- 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?
- WordPress Persistent connection rule does not work for “posts”
- subdirectory index.php is not working
- 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
- Advanced Custom Fields not displaying
- How to get private property in parent class into extended class?
- Exclude posts with specific metadata from search?
- Warning: Illegal string offset on theme options page [closed]
- Clickable image link sends people to wrong URL
- Check class_exists before class definition / Doxygen problem
- Extract links from content
- Integrating Yii2 and WordPress
- Custom Registration username_exists / email_exists
- After disabling WPML multi currency, the currency is still handled by the WPML
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- PHP Helper Class to create shortcodes
- Reusable code that I can store in the function.php and apply to other templates as need. Dry Code
- Is it possible to add a custom page to a free WordPress site? [closed]
- Is there a hack for using is_page() within the function.php file?
- How to Fix an Archive.php That Displays All Posts?
- Assign Custom classes to every Excerpt
- Make next post button link to random post
- WordPress Rewrite Rule
- Site DOES NOT LOAD after 3.1 update
- How to make Subdomain work for product_tag?
- Customizer control save then return to default
- WP-Bakery – Add custom colors to buttons with template colors
- How to serve WordPress folder over subdomain?
- update_user_meta as multiple value but with same meta key
- retrieve “Link Color” value
- Delete post meta by serialized meta value
- Dynamic Banner Text based on Subdomain
- Create form which redirects to site in network?
- Remove specific javascript when viewing page in Customizer?
- Search only for posts with specific metadata?
- Running local copy of an old WordPress site on MAMP
- WordPress Redirect / Add_Rewrite_Rule – Non Index.php Page
- Customizing WooCommerce with PHP
- What image is this pulling?
- How can I add “.html” to the end of a single URL on a WordPress website?
- Is there a way to have chunks of a page’s content expire?
- Resource 404 error on multisite subdirectory install
- Where can I find the declaration of `$_wp_theme_features`?
- redirect 301 with special character like WIX site “#!”
- 301 redirect from webpage to wordpress page in the same root
- Static home page ignored
- How do I routinely extract the thumbnail of the most recent post?
- Showing the project type in HREF
- Display tab title as ‘blog tagline | blog title’
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Showing custom field contents without listing description
- How to use PHP code with wordpress page
- Check if values exists DB
- if is_bbPress register jquery
- Auto create description in post
- how to exclude admin page from add_rewrite_rule in wordpress
- Pagination on Custom Loop
- Why I can download any file except PHP files from a URL but I can download any from another site?
- error with WP custom form
- How can I clear the theme mod settings?
- MySQL Engine vs. Charset
- Custom PHP-coding in MU installs
- Select area and checkbox data is not saving?
- In reading settings posts are set to “blog” and I have page-blog.php but no posts
- How to use multiple 404 Error Pages in WordPress
- WordPress add parameters with friendly url structure
- WP Custom tables query
- hello can you advise how to fix the error?
- Add multiple HTML attributes to an Elementor button