Invision Community 5: A video walkthrough creating a custom theme and homepage By Matt Thursday at 04:02 PM
VaBeach_Guy Posted May 19, 2020 Posted May 19, 2020 The board that I'm referencing in this post is fairly new (1 month live as of the 20th). I have Friendly URL's enabled, but index.php?/ is still part of the URL. Is there a good reason to rewrite the URL's to eliminate that? Is there an even better reason NOT to rewrite, such as major problems that it may cause? Like I said, the board is new, but there's around 50,000 posts at this point. I don't want to do something that's going to screw things up if the current setup is just fine.
Morrigan Posted May 20, 2020 Posted May 20, 2020 It’s more seo friendly not to have it. Use “Seo optimization” in the menu to download and fix the issue. Won’t cause any tithes and will give a good redirect. Pescao6 1
VaBeach_Guy Posted May 20, 2020 Author Posted May 20, 2020 2 hours ago, Morrigan said: It’s more seo friendly not to have it. Use “Seo optimization” in the menu to download and fix the issue. Won’t cause any tithes and will give a good redirect. As they are now, it looks like this (just a random example): https://www.eaglesmessageboard.com/index.php?/topic/115-survivor-season-40-winners-at-war/ That URL would be less desirable than if 'index.php?' wasn't there? I don't mind having the board rewrite the URLs, I just don't want to 'break' the board by doing it. I wish I'd done it before going live, but it's just one of those things that I didn't do and now there's about 50,000 posts. I really don't want rewriting the URLs to cause a mess. I guess I could clone the board and install it in a test forum, then rewrite and see how it reacts. I could then use that test forum for the 4.5 upgrade test forum when it gets released.
opentype Posted May 20, 2020 Posted May 20, 2020 8 hours ago, VaBeach_Guy said: Is there an even better reason NOT to rewrite, such as major problems that it may cause? No. Do it! 😉 Morrigan 1
Morrigan Posted May 20, 2020 Posted May 20, 2020 Doing this won't harm anything. It will improve SEO by removing the index.php? which tells the browser that there is a query. Trust me. All good things.
bfarber Posted May 20, 2020 Posted May 20, 2020 I would recommend making the change. The existing URLs should be redirected to the new locations just fine so you won't run into any issues.
VaBeach_Guy Posted May 20, 2020 Author Posted May 20, 2020 Will doing this cause uploaded images to no longer display properly or will that have to be re-built? I ask because I don't want the member list to have to be re-built, which I believe I did once on another board several years ago, and it screwed up the post counts. This new board is actually a sort of 'replacement' board for an official NFL team board that the team did away with. As part of building the replacement board, I had everyone archive their old profiles (on the discontinued, official board), and once they joined the new board, I manually set their post count and reputation score to what it had been on the official board. That just kind of gave a smooth transition for everyone, but was a good bit of work for me. But the majority of members didn't want to lose 10 to 20 years worth of post count (the highest of which is around 130,000 posts). I really don't want to have to do that all over again lol. I actually don't even know if 'rebuilding' is still a thing in the ACP, to be honest lol.
Morrigan Posted May 20, 2020 Posted May 20, 2020 Nothing adverse will happen. It won't change anything crazy ALL it will do is remove index.php? from the forum. I've done it plenty of times and it actually improves SEO. THe uploaded images will stay in tact, nothing will be rebuilt. I'd say its a magic button to remove that bit from your URL. ❤️
VaBeach_Guy Posted May 29, 2020 Author Posted May 29, 2020 I made the change a couple of days ago. There does seem to be an uptick in guests. I don't know if that's related, but the uptick does pretty much exactly coincide with the rewriting of the URL's. But at the same time, there seems to be a downtick in Adsense impressions, which pretty much coincides with the re-writing.
Grandma Posted May 31 Posted May 31 How to remove that index.php without rewriting them? If I rewrite them for current pages and then create new pages. It will be an issue for the future pages correct? I tried rewriting via .htaccess and all pages were 404 after... Thanks
Jim M Posted May 31 Posted May 31 4 minutes ago, Grandma said: I tried rewriting via .htaccess and all pages were 404 after... Did you apply the .htaccess on your server in the community's root directory? If so, please ensure that your server supports URL rewrites and is running Apache. If you do not know how to do any of this, please contact your hosting provider for support.
Grandma Posted May 31 Posted May 31 Supports apache and supports rewrites. After changing .htaccess url structure didn't change but says admin page can't be found .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / # If the request is for a valid file or directory, don't rewrite RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Remove /index.php from the URL RewriteRule ^index\.php/(.*)$ /$1 [L,R=301] # Handle all other requests through index.php RewriteRule ^(.*)$ index.php?/$1 [L,QSA] </IfModule>
Jim M Posted May 31 Posted May 31 Did you place this in the root directory of where your community is installed on your server? If you placed it in the "admin" directory, you would indeed get an error. You will want to move it up to the root directory.
Jim M Posted May 31 Posted May 31 Please put it in place and provide us access: We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you.
Jim M Posted May 31 Posted May 31 Unfortunately, the ACP credentials we are provided were a display name when the ACP is requiring an email address. Additionally, I see that the .htaccess is blank on your server. Please ensure that it is populated correctly and in place in the error'd state.
Grandma Posted May 31 Posted May 31 I just checked and everything works. Login via cpanel using credentials I provided. I just checked and everything worked. I placed the code back into .htaccess as per your instruction. Thank you for your help!
Jim M Posted May 31 Posted May 31 1 minute ago, Grandma said: I just checked and everything works. Login via cpanel using credentials I provided. I just checked and everything worked. The ACP credentials are still a display name rather than email address which it requires. This is the Admin Control Panel of the software, not your hosting. Additionally, the error is not in place as URL rewrite has not been enabled in the ACP and I also cannot access the ACP.
Jim M Posted May 31 Posted May 31 What you have in your .htaccess is not the .htaccess we provide in ACP -> System -> Search Engine Optimization -> Rewrite Rules. You will want to download that file and apply it as instructed there: Grandma 1
Recommended Posts