Posts

Showing posts with the label clean-urls

"Friendly URLs" rule in .htaccess interfering with some directories

"Friendly URLs" rule in .htaccess interfering with some directories - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the "Friendly URLs" rule in .htaccess interfering with some directories error on your web browser.  Problem : My .htaccess is set up to remove .html from URLs as follows: RewriteEngine on RewriteCond %http_host ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,NC] RewriteCond %REQUEST_FILENAME !-f RewriteRule ^([^.]+)$ $1...

Should I redirect "ugly" URL to friendly URL?

Should I redirect "ugly" URL to friendly URL? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Should I redirect "ugly" URL to friendly URL? error on your web browser.  Problem : I use mod_rewrite to rewrite https://example.com/?page=some-page&tab=2 to https://example.com/articles/some-page/2 . But people can still access both URLs. I want to know: should I redirect the "ugly" URL to the friendly URL? Does that improve my SEO? And why? ...