Search the Community
Showing results for tags 'htaccess redirects'.
-
Hi, We copied the production source and configured it the same as the development source on the localhost. However, the website is not working on the localhost, whereas it is working fine on the production source. Please find the error attached. FYI - we have SSL for the production environment. Can anyone kindly help resolve this issue? Thank you
- 13 replies
-
- htaccess
- htaccess redirects
-
(and 2 more)
Tagged with:
-
Hi Guys, I have a client with a strange set up. In analytics we are seeing urls getting pageviews that technically dont exist. Example: website.org/questions/search/blog/2016/07/blog-post-name/index.php The current ht access file looks like this but all that does is redirect these blog urls to the home page. # Redirect index.php Requests # ------------------------------ RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC] RewriteCond %{THE_REQUEST} !/system/.* RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L] Is there an htaccess code to handle all pages like this (redirect urls ending in /index.php): Example: website.org/questions/search/blog/2016/07/blog-post-name/index.php to: website.org/questions/search/blog/2016/07/blog-post-name/ I can do this on a url by url basis buy the same happens every time a new post is created. Thanks