php


Rewrite single page url in Wordpress with .htaccess


I have a page in Wordpress that is a child of a parent page. Its url comes up thusly:
www.domain.com/parent/subpage/
There are about five other subpages of the parent. However, for the one specific subpage, I want to change the URL to show up under root, like this:
www.domain.com/subpage/
Is there any way of doing this with .htaccess, or with a plugin? I can't figure out how to accomplish this.
You can redirect this single page with just
Redirect /parent/subpage/ http://www.domain.com/subpage/
See Redirect Directive for more information.

Related Links

PDO select all function [duplicate]
Sanitize custom checkout fields data in WooCommerce
Create validation rule which can stop other checks in laravel 5.3
Data is not being inserted by the following query
PHP MAMP fsockopen fails if no IPv6 DNS entry is available
how to pass variables from controller to controller in prestashop?
Uploading a file in PHP won´t work
User Permissions using Slim 3 and Eloquent
Improving summing algorithm for 2048 game developed with PHP
How to add progressbar to downloading file?
Wordpress Upload media isuue Fatal error: Maximum function nesting level of '256' reached
Laravel route “air” gives me permission error on new installed laravel. but other routes are OK
The requested package barryvdh/laravel-dompdf could not be found in any version
how to show breaks, newlines between the words as we write in database? [duplicate]
PHP responding before image is created
PHP salt generation is not showing up properly in DB?

Categories

HOME
events
yii
embedded-resource
hyperledger
azure-mobile-services
fedora
ui-automation
gprs
gtk
elastic-load-balancer
amazon-emr
angular4
pushdown-automaton
jpa-2.0
mailgun
asp.net-core-1.0
async-await
fresco
twisted
l20n
exec-maven-plugin
pfobject
cmake-gui
social-tables
activeadmin
liferay-6.2
multi-dimensional-scaling
msdeploy
annotation-processing
windows2012
quick-nimble
plantuml
knights-tour
custom-keyboard
nppexec
eclipse-gmf
coverage.py
vungle-ads
morphline
wysihtml5
maven-jaxb2-plugin
apache-modules
pecl
boost-compute
libharu
clp
dmarc
between
xcode8-beta4
android-sdcard
maven-release-plugin
right-to-left
maximize
persistent-object-store
ioctl
django-validation
deeplink
phpquery
decidable
nastran
srv-record
dynamics-ax-2012-r2
alwayson
kefir.js
text-align
htmltidy
mod-auth-openidc
directorysearcher
jolie
uno
comctl32
string.format
window-resize
communicate
reference-counting
webaii
ivalueconverter
cloo
dibs
spiral
proc-open
multiple-dispatch
gitx
android-dialog
pageheap
uipangesturerecognizer
type-safety
yuidoc
sigar
webresponse
turbine
sscli
self-tracking-entities
oracle-pro-c
facebook-fbml
rawcontacts
external-sorting
index.dat
remote-working
bindable-linq

Resources

Encrypt Message