TypeRocket / core

TypeRocket core source files where all the magic lives.
https://typerocket.com
36 stars 21 forks source link

How to delete /wordpress from URL using with the .htaccess file? #54

Closed mokingpu closed 3 years ago

mokingpu commented 5 years ago

Hi,

Here is my .htaccess file how it looks like.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /projects/sitename/wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /projects/sitename/wordpress/index.php [L]
</IfModule>
# END WordPress

I want to use my URL like this: https://mydomain/projects/sitename/

I need to learn the settings of the .htaccess file because I will use to my client projects after this.

Waiting for a solution, thank you in advance and best regards!

kevindees commented 5 years ago

Hey @mokingpu

Can you give me more details on how you have TypeRocket installed? Also, this might be a more general WP issue. I'm not sure.

Does this help? https://wordpress.org/support/article/giving-wordpress-its-own-directory/

NeeONCorp commented 5 years ago

I also encountered this issue.

After installing the framework (in root project) I configured my server so that it looked in the directory /wordpress.

VirtualDocumentRoot /home/dev/www/%-5/wordpress

When visiting the main page, the backend works correctly, but in the developer console the following errors: https://prnt.sc/on6ys2

Also, when trying to go to the admin dashboard, I have a redirect to site.com/wordpress/wp-login.php

I followed instructions, but ran into this issue. Could you help me?

mokingpu commented 5 years ago

Hi @kevindees,

I have installed the Typerocket with root installation.

I have tried everything but nothing works :/

The weird part is even if I delete the codes in the .htaccess file nothing happening to my site, it's looking like .htaccess file is not in the right place because now is useless, I have also created other .htaccess files to the root path and in the "resources > themes > templates" path but nothing happening about .htaccess file, I couldn't find the real one that's why .htaccess file solution is looking useless for me. If I could find the real one then I could do some test about that but.

I need to fix that actually because my client is waiting :/

Thanks and best regards.

kevindees commented 5 years ago

Hey @mokingpu

I'm still looking into this one for you. But I'm not sure when I'll be able to get you a solution before your site is due to launch.

Have you tried using Typerocket as an MU plugin and having the site setup using a normal WP install?

kevindees commented 5 years ago

Hey @mokingpu

I recommend asking your question on Stack Overflow... maybe someone there can help, Unfortunately, I do not have a lot of time to spare right now to help with your specific question.