Mobile app version of vmapp.org
Login or Join

Login to follow query

More posts by @Kimberly868

2 Comments

Sorted by latest first Latest Oldest Best

 

@Lengel546

In case you need redirect from:
yoursite.com/subpage1/subpage2/?YOURSTRING=blabla ----------> yoursite.com/subpage1/subpage2/

then in the beginning of .htaccess, insert:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} YOURSTRING=(.*)
RewriteRule ^(.*)$ /? [R=301,L]
</IfModule>

## If WordPress is not installed in root folder, then edit the fourth line like this
RewriteRule ^(.*)$ /YOUR-WORDPRESS-DIRECTORY/? [R=301,L]


p.s. if you want other redirection from QUESTION MARK, then use: stackoverflow.com/a/15680832/2377343

10% popularity Vote Up Vote Down


 

@Sims2060225

Try this

RewriteEngine On
RewriteBase /
RewriteRule ^edit/id/([0-9]+)/?$ edit.php?id= [NC,QSA,L]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme