Can I make a universal 301 redirect rule for my site?
-
I.e. I switch shopping carts and every page has the same path/name but now ends in .php instead of .htm.
-
If you have mod_rewrite enabled on your server you could try something like this in your .htaccess file:
RewriteCond %{REQUEST_URI} ^(.).htm$
RewriteRule ^(.) /$1.php [R=301,L] -
You can use Excel formulas to generate a list with all your URLs with .php....
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
slug Link redirect to subdomain?
Hi !
Link Building | | Leviiii
Im Levi new here and new in the world of SEO, please dont judge if my questions are silly. Back on the days when the site was built we thought it is a good ideea to have subdomains that together with the domain name represent our main keywords.
ex. https://stansted.tonorwich.uk, https://heathrow.tonorwich.uk, https://luton.tonorwich.uk, https://gatwick.tonorwich.uk. There is content on this subdomains, would it make any difference from SEO perspective if we create slugs that redirect to these subdomains? for example creating https://tonorwich.uk/taxi-minibus-vip-tesla-norwich-to-stansted that redirects to https://stansted.tonorwich.uk ? Or better create these slugs with slightly different content?
Any ideeas would be appreciated.
Thanks in advance!0 -
What are Best Practices for Ault Site SEO
Has anyone here had experience doing SEO for an Adult DVD website? A company has approached me and they obviously only want White Hat practices. I have used open site explorer to do research on some competitors. The top competitors of this company seem to have only a few high PR links from High Authority industry sites and almost all have a link from the Yahoo Directory. Does anyone know where or how to create high authority content links from this niche? It seems that most of the competitor links are on sub par pages and are single links in the side nav of other sites. I am not sure if I can post a link to the company here but any suggestions on link building for adult sites would be great. Please remember they are a retailer and don't have pop up advertising or any illegal content. Thanks,
Link Building | | macs220 -
Link on Every Wordpress Portion of My Site?
I have a website that is pretty popular with good SEO rankings. Part of the site is ran with Wordpress (homepage, articles and static content pages), another part is the forums using vBulletin (probably 75-80% of the pages on the site) and I also have a directory using another software. I have a new website and was going to add a link to it on my older site on the sidebar of Wordpress across all the Wordpress pages. Should I stay away from that or just put it on the homepage? The text is basically "Come check out the new {keyword} site at {SiteTitle}, by the founders of {OldSiteTitle}. I would have the keyword and sitetitle linked over to the new site. Would I be hurting either site by doing this or should it be looked at as a natural link as I do own both of the sites and want to let people know about the new site.
Link Building | | USACarry0 -
Too many links from one site?
In webmaster tools in 'links to your site' I have a totla of 819 links but 580 have appeared from one site. Is this bad for SEO?
Link Building | | SamCUK0 -
Linking to a site in the US from a site in the UK - Good, bad or not important?
Would linking to a site in the US from the UK do harm or good if the site being linked to is industry related? i.e. a UK web design company linking to a US web design career site.
Link Building | | Tone_Agency0 -
Guest posts on sites you buy advertising with?
What are your thoughts about the following scenarios. Scenario 1: You purchased a banner ad on a site for $50. Then you notice that the site accepts guest posts and you contribute a guest article which has a followed link. Scenario 2: You pitch a guest post to a blog and they say sure but first pay us $50. You say, I can't pay for links but how about I buy an ad spot for $50 instead in appreciation of you reviewing by submission. Scenario 3: You pitch a guest post to a blog and they say sure but it will cost $50 to be published. You say sure and pay them. Which of these would go against Google's guidelines and be considered a paid link? It seems like they are all buying links to a different degree, but they would all be indistinguishable to Google.
Link Building | | ProjectLabs1 -
Yahoo site explorer.
With yahoo site explorer no longer available, how do we view backlinks of a site in Yahoo. How many backlinks a site has in yahoo search engine ? .
Link Building | | seoug_20050 -
How can I verify who links to me?
I need to verify all the inbound links I have coming in to my site. I've tried using OSE but have been told it does not scrape many smaller sites so cannot be sure of it's accuracy (especially since when I ran it, it returned a small % of the link i know are out there). Is there a way to do this in Analytics? Or another way? Thanks
Link Building | | NiallTom0