.htaccess - 301 redirect ugly URLs to clean URLs -
Hello I have a problem here I was searching for the solution, but no solution was found on it ... then my HTC file
rewrite the code on rewriting% {REQUEST_FILENAME}! -f rewrite% {REQUEST_FILENAME}! -d RectitRule ^ (. +) $ Index.php? Page = $ 1 [QSA] This sends prety URLs like www.example.com/index.php?page=xxx to my URL at www.example. Com / xxx So this works, but the problem is that I can access the same page from those two URLs. That's why it is similar to the same content from Google for different URLs for Google. How do 301 redirects from old links?
correct RewriteEngine On line, add it: rewrite% {THE_REQUEST} ^ (get | top | POST) \ /index.php = page = ([^ & amp; \] +) & amp; ; ([^ \] *) Revised Rules ^ /% 2?% 3 [L, R = 301] This checks for the actual request (and request URI) Extends the value of the /index.php and the page parameter, then redirects the browser to the value of the parameter's URI (adding any remaining query string for it). It's the URL address bar of the URL without the /index.php
Comments
Post a Comment