Can you please try the above but delete:
#removing trailing slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ $1 [R=301,L]
Let me know if that works.
Welcome to the Q&A Forum
Browse the forum for helpful insights and fresh discussions about all things SEO.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Job Title: SEO & Content Architect
Company: Moz
Favorite Thing about SEO
ROI
Can you please try the above but delete:
#removing trailing slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ $1 [R=301,L]
Let me know if that works.
Ah-ha! Ok, that makes sense. Realize it sucks to write unique copy for the same products, but I'm not aware of a better solution for that right now...I'll let you know if I come across anything though! : )
Thanks
Hi Uber_,
Typically this is handled is by adding the following to your .htaccess file:
RewriteCond %{REQUEST_FILENAME} !-f <--looks like your version of this would also work fine.
RewriteCond %{REQUEST_URI} !index.php <---This is very optional. If there are any .php files you don't want to be rewritten add their .endpath here.
RewriteCond %{REQUEST_URI} !(.*)/$ <----Looks like you have this, which determines which url doesn't have a trailing slash.
RewriteRule ^(.*)$ http://ghadaalsaman.com.com/$1/ [L,R=301] <----This would add a trailing slash and then redirect to the new URL.
Highly recommend you add the last line because both of your / and non / ending urls are populating (which could cause duplicate content issues). This will also help with allocating proper page authority.
Hope this helps,
B
Ah ok, so generally I wouldn't suggest making any forced H1, H2 changes through php. Because, now all of your H1s will be affected (if I'm reading this right), which you don't want to happen.
Also if your issue before was having multiple H1 tags before, you'll now have multiple H2's. What CMS are you working in? Did you have multiple H1s before due to styling reasons (ex. Wordpress)?
If the header font style is what you were bothered with, modifying the css to reflect similarity across headers would work great. Then use the headers as you normally would.
Lastly, this should not affect your rankings that dramatically. I would look at your website analysis, backlink profile and see if any big on-site content changes were made.
-Hope this helps-
Agree with Matt, this drastic of a swing isn't likely due to changing your H1, H2s in CSS.
Can you please clarify "used the css to overwrite the secondary headings as h2 tags." ?
Lots of people use multiple H1s or H2s on a page due to formatting reasons. They like the way all of the H2s look (font size, weight, font, etc.) but the best way to go about this is to make custom CSS changes that modify ALL Header tags to look the same. This way you can use proper H1, H2, H3, H4, etc. and it won't look like a wonky cascading sub-title issue.
Some things to check regarding your ranking:
1. Google Search Console for server & index issues
2. Dropped 301s
3. New spammy backlinks
4. Any search console warnings
Ah ok, so generally I wouldn't suggest making any forced H1, H2 changes through php. Because, now all of your H1s will be affected (if I'm reading this right), which you don't want to happen.
Also if your issue before was having multiple H1 tags before, you'll now have multiple H2's. What CMS are you working in? Did you have multiple H1s before due to styling reasons (ex. Wordpress)?
If the header font style is what you were bothered with, modifying the css to reflect similarity across headers would work great. Then use the headers as you normally would.
Lastly, this should not affect your rankings that dramatically. I would look at your website analysis, backlink profile and see if any big on-site content changes were made.
-Hope this helps-
I'm a MN Native who found my way into SEO through Real Estate writing, self-taught programming skills, lots of strange SEO tests and 4+years of owning my own digital marketing agency (Pryde Marketing).
Looks like your connection to Moz was lost, please wait while we try to reconnect.