Redirect a page from one page to another page without changing the url using htaccess

拟墨画扇 提交于 2019-12-01 20:51:51
user3150556

You can try this one buddy:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite.com
RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]

I used this on my website.

You may try this:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI}  ^/index\.php/component/quates   [NC]
RewriteRule .*   index.php/component/quotes   [R=301,L]

Redirects permanently

http://idaycom.com/index.php/component/quates

To

http://idaycom.com/index.php/component/quotes

For silent mapping, replace [R=301,L] with [L]

you can try with many ways:

RedirectMatch "^/existingfile\.html/?$" "http://example.com/newfile.php"

this will redirect your existing url to new url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!