Skip to main content
Grammar fix, spelling correction, added tag, code blocks added
Source Link

I have a page which is called "/home" and it's the home page./home and I would like to make htaccessmy .htaccess redirect it to "/homepage"/homepage which is the actuallactual page that iI want to show.

My htaccess is this one.htaccess has the following:

# Switch rewrite engine off in case this was installed under HostPay.
RewriteEngine Off

SetEnv DEFAULT_PHP_VERSION 55

DirectoryIndex index.cgi index.php

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

# END WordPress

What do iI have to add that whenever a user tries to go to http://example.com/http://example.com/ to redirect himthem at http://example.com/homepage ?http://example.com/homepage?

Thanks a lot!

I have a page which is called "/home" and it's the home page. I would like to make htaccess redirect to "/homepage" which is the actuall page that i want to show.

My htaccess is this one

# Switch rewrite engine off in case this was installed under HostPay.
RewriteEngine Off

SetEnv DEFAULT_PHP_VERSION 55

DirectoryIndex index.cgi index.php

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

# END WordPress

What do i have to add that whenever a user tries to go to http://example.com/ to redirect him at http://example.com/homepage ??

Thanks a lot!

I have a page which is called /home and I would like to make my .htaccess redirect it to /homepage which is the actual page that I want to show.

My .htaccess has the following:

# Switch rewrite engine off in case this was installed under HostPay.
RewriteEngine Off

SetEnv DEFAULT_PHP_VERSION 55

DirectoryIndex index.cgi index.php

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

# END WordPress

What do I have to add whenever a user tries to go to http://example.com/ to redirect them at http://example.com/homepage?

Source Link

Redirect home to another page with htaccess

I have a page which is called "/home" and it's the home page. I would like to make htaccess redirect to "/homepage" which is the actuall page that i want to show.

My htaccess is this one

# Switch rewrite engine off in case this was installed under HostPay.
RewriteEngine Off

SetEnv DEFAULT_PHP_VERSION 55

DirectoryIndex index.cgi index.php

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

# END WordPress

What do i have to add that whenever a user tries to go to http://example.com/ to redirect him at http://example.com/homepage ??

Thanks a lot!