# Advice on URL names - Q from SEO course

**URL:** <https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563>\
**Category:** RapidWeaver Classic\
**Created:** [November 22, 2018, 10:07am UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563 "2018-11-22T10:07:30Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![McMari23](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@McMari23](https://forums.realmacsoftware.com/u/McMari23)\
**Post date:** [November 29, 2018, 1:49pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/21 "2018-11-29T13:49:10Z")

</div>

… the last one had a backslash before the two dots, which got erased somehow.

---

<div class="post-metadata">

**Author:** ![swilliam](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/swilliam/32/14799_2.png) [@swilliam](https://forums.realmacsoftware.com/u/swilliam)\
**Post date:** [November 29, 2018, 2:02pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/22 "2018-11-29T14:02:02Z")

</div>

I would look I. Your hosting Cpanel (or whatever dashboard you have) and see if there is a redirect facility built in. Most have this, it will write the proper code into the .hraccess for you.

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [November 29, 2018, 2:09pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/23 "2018-11-29T14:09:39Z")

</div>

First drop the quotes  
Second try using something like this

```auto
Redirect 301 /oldpage.html https://www.yoursite.com/newpage.htm

```

You must use a complete path.

---

<div class="post-metadata">

**Author:** ![McMari23](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@McMari23](https://forums.realmacsoftware.com/u/McMari23)\
**Post date:** [November 29, 2018, 2:25pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/24 "2018-11-29T14:25:05Z")

</div>

Will check with my provider. Thanks anyway.

---

<div class="post-metadata">

**Author:** ![McMari23](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@McMari23](https://forums.realmacsoftware.com/u/McMari23)\
**Post date:** [November 29, 2018, 2:25pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/25 "2018-11-29T14:25:57Z")

</div>

Drop quotes and complete path didn’t work either. Thanks much.

---

<div class="post-metadata">

**Author:** ![DLH](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DLH](https://forums.realmacsoftware.com/u/DLH)\
**Post date:** [November 29, 2018, 3:11pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/26 "2018-11-29T15:11:40Z")

</div>

A link to your website would be helpful.

I leave off the index.html or index.php from the destination and just point it to the folder, just like if I was setting up a link to that page.

---

<div class="post-metadata">

**Author:** ![McMari23](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@McMari23](https://forums.realmacsoftware.com/u/McMari23)\
**Post date:** [November 29, 2018, 3:22pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/27 "2018-11-29T15:22:58Z")

</div>

This is it:

> **[Tools and Solutions from SEGGER, PERCEPIO, RAZORCAT and GIMPEL](https://www.carnica-technology.com)**
>
> Your One-Stop-Shop for Embedded Projects: Development Solutions from SEGGER, PERCEPIO, RAZORCAT and GIMPEL

---

<div class="post-metadata">

**Author:** ![DLH](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DLH](https://forums.realmacsoftware.com/u/DLH)\
**Post date:** [November 29, 2018, 3:51pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/28 "2018-11-29T15:51:08Z")

</div>

Here’s how I would write the redirect:

`redirect 301 /solutions/embedded-solutions.html https://www.carnica-technology.com/embedded-project-tools/`

That should work, unless there is something odd in the server setup or htaccess file. Make sure that anything in the htaccess file is plain text. If you paste anything in, make sure you paste as plain text.

I also noticed that I am not getting a padlock icon on your site. You likely still have http links instead of all https links on your pages. You can’t call non-SSL (http) content from an SSL (https) page. It’s referred to as mixed content and since not all the content is secure, you do not get the padlock. Here’s a site to help track down those mixed-content issues. [https://www.whynopadlock.com](https://www.whynopadlock.com)

---

<div class="post-metadata">

**Author:** ![McMari23](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@McMari23](https://forums.realmacsoftware.com/u/McMari23)\
**Post date:** [November 29, 2018, 4:07pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/29 "2018-11-29T16:07:58Z")

</div>

You are right. I have not reviewed all pages and changed all http: to https:  
They are still mixed. Perhaps this will help.

Your suggestion for the redirect is also not working.  
For my provider, the syntax looks like to be different.  
I have to check with them.

BTW, **R** edirect has to have a capital R.  
Thanks anyway for your help.

---

<div class="post-metadata">

**Author:** ![DLH](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DLH](https://forums.realmacsoftware.com/u/DLH)\
**Post date:** [November 29, 2018, 4:13pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/30 "2018-11-29T16:13:56Z")

</div>

> [@McMari23](#):
>
> BTW, **R** edirect has to have a capital R.

Probably good practice, but my redirects work fine with it lowercase.

Hopefully, your provider can provide the proper syntax.

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [November 29, 2018, 7:15pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/31 "2018-11-29T19:15:41Z")

</div>

> [@McMari23](#):
>
> For my provider, the syntax looks like to be different.

If you’re not running Apache(or nginx with a converter) then using a .htaccess file probably won’t work.  
The format for a redirect with an htaccess file should work if your host supports htaccess. Some host do restrict htacces file use.

You did not say who the host you are using is. That might help as someone on the forum may have experience with them.

---

<div class="post-metadata">

**Author:** ![McMari23](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@McMari23](https://forums.realmacsoftware.com/u/McMari23)\
**Post date:** [November 30, 2018, 8:57am UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/32 "2018-11-30T08:57:27Z")

</div>

My provider is 1&1 IONOS AG, www.ionos.at

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [November 30, 2018, 11:20am UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/33 "2018-11-30T11:20:32Z")

</div>

I’m not familiar with them but they appear to support `.htaccess`.

Perhaps you can post here the **complete** `.htaccess` file you are using?

Once you paste it into your post select it and mark it as code(select the `</>` above) if you’re failing the test tool I gave above then it’s not going to work on the live site.

---

<div class="post-metadata">

**Author:** ![McMari23](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@McMari23](https://forums.realmacsoftware.com/u/McMari23)\
**Post date:** [December 2, 2018, 1:41pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/34 "2018-12-02T13:41:17Z")

</div>

Here is the relevant part of my .htaccess file.  
Line 5 and 6 work.  
301 Redirects in line 13 to 16 are all trying the same with different syntax - None worked.  
Here is the file:

```
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

############################################################
# 301-Umleitung #
############################################################
Options +FollowSymlinks
RewriteEngine On  
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$ https://www.my-site.com/$1 [R=301,L]

#######################################################################
# 404-Umleitung auf Fehlerseite #
#######################################################################

AuthGroupFile /dev/null
AuthName Intern
AuthType Basic
ErrorDocument 404 https://www.my-site.com/errorpage/errorpage.html

#######################################################################
# Umleitung /index.html und /index.php auf Rootseite #
#######################################################################

RewriteEngine On
RewriteRule ^index\.(php|html)$ https://my-site.com/ [R=301,L]

############################################################
# 301-Umleitung auf index.html/php Seiten Nov2018 #
############################################################

Redirect 301 "/solutions-overview/solutions-overview.html" "/solutions-overview/index.html"
Redirect 301 /solutions-overview/solutions-overview.html /solutions-overview/index.html
Redirect 301 ^/solutions-overview/solutions-overview.html$ /solutions-overview/index.html
RewriteRule ^/solutions-overview/solutions-overview.html$ /solutions-overview/index.html [R=301,L]
```

---

<div class="post-metadata">

**Author:** ![Fuellemann](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/fuellemann/32/22871_2.png) [@Fuellemann](https://forums.realmacsoftware.com/u/Fuellemann)\
**Post date:** [December 2, 2018, 2:55pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/35 "2018-12-02T14:55:05Z")

</div>

You did exchange “my-site” with your real Website Address?

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [December 2, 2018, 3:33pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/36 "2018-12-02T15:33:14Z")

</div>

> [@McMari23](#):
>
> Here is the relevant part of my .htaccess file.

I hope that is not your **real** `.htaccess` file, as has been pointed out by Jan (@Fuellemann) you have issues.

You have a lot going on in the file, .htaccess files can have conflicts so a rule may never get hit. Without seeing the actual file in its entirety, it would be impossible to determine what is going on. You can either post the actual file, along with what you are trying to do and a URL to the site or start with an empty .htaccess file add the rewrite rules one at a time and by process of elimination determine the conflict.

For example, you have `RewriteEngine On ` twice, you should group all the rewrite together. You are redirecting files from index.html to index.php? Why?  
If the files name has changed in an earlier directive, then later rules may not be applied.

---

<div class="post-metadata">

**Author:** ![McMari23](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@McMari23](https://forums.realmacsoftware.com/u/McMari23)\
**Post date:** [December 3, 2018, 10:18am UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/37 "2018-12-03T10:18:48Z")

</div>

Here is my real .htaccess file.

I corrected the double RewriteEngine ON, and the redirect from index.html to .php - which was in there forever, don’t know where it came from. Thanks for the hints.

There are many more similar redirect lines on more pages, which I left out.  
The syntax of the redirect line can be any of the ones mentioned in my previous post - they all don’t work.

```
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

AuthGroupFile /dev/null
AuthName Intern
AuthType Basic
ErrorDocument 404 https://www.carnica-technology.com/errorpage/errorpage.html

Options +FollowSymlinks
RewriteEngine On  
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$ https://www.carnica-technology.com/$1 [R=301,L]

Redirect 301 "/solutions/embedded-solutions.html" "/embedded-project-tools/index.html"
Redirect 301 "/solutions-overview/solutions-overview.html" "/solutions-overview/index.html"
```

---

<div class="post-metadata">

**Author:** ![teefers](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/teefers/32/8173_2.png) [@teefers](https://forums.realmacsoftware.com/u/teefers)\
**Post date:** [December 3, 2018, 12:53pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/38 "2018-12-03T12:53:29Z")

</div>

> [@McMari23](#):
>
> AddType x-mapp-php5 .php AddHandler x-mapp-php5 .php

Why are you using php 5? Active support drooped almost 2 years ago, security support goes away in about a month. If you have a need for it you really need to migrate to something else.

> [@McMari23](#):
>
> Options +FollowSymlinks

Not sure why you have this, most shared hosting don’t give you access to create symbolic links, if they need it (for hosting needs) they have that directive further up the Apache food chain.

That being said, I would remove that stuff, and put the redirect at the top of my htaccess file.

```auto
RewriteEngine On
Redirect 301 /solutions/embedded-solutions.html /embedded-project-tools/index.html
Redirect 301 /solutions-overview/solutions-overview.html /solutions-overview/index.html
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
AuthGroupFile /dev/null
AuthName Intern
AuthType Basic
ErrorDocument 404 https://www.carnica-technology.com/errorpage/errorpage.html

```

Edited (had a pasting error)

---

<div class="post-metadata">

**Author:** ![annebourdon](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/annebourdon/32/2391_2.png) [@annebourdon](https://forums.realmacsoftware.com/u/annebourdon)\
**Post date:** [December 3, 2018, 1:17pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/39 "2018-12-03T13:17:34Z")

</div>

> [@McMari23](#):
>
> Redirect 301 “/solutions/embedded-solutions.html” “/embedded-project-tools/index.html” Redirect 301 “/solutions-overview/solutions-overview.html” “/solutions-overview/index.html”

In this part of your htaccess file, I would have written the full URL for the new destination : [Find professional Embedded Tools and Solutions | Carnica Technology](https://www.carnica-technology.com/embedded-project-tools/index.html), instead of only embedded-project-tools/index.html

---

<div class="post-metadata">

**Author:** ![McMari23](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@McMari23](https://forums.realmacsoftware.com/u/McMari23)\
**Post date:** [December 3, 2018, 1:33pm UTC](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563/40 "2018-12-03T13:33:52Z")

</div>

The php5 stuff was in there for years. Can’t remember where it came from. You are probably right to take it out.  
I also took out the “Options…” line.  
Putting the redirects at the top does not work either.  
This is really complex…

[Previous page](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563.md?page=1)

[Next page](https://forums.realmacsoftware.com/t/advice-on-url-names-q-from-seo-course/23563.md?page=3)
