Friendly and pages regular expression
-
Hi, I am trying to fix this with a reg expression but I dont know how.
Here is the example:
I would like to have my link like this:
mysite.com/noticias/123/here-comes-the-title-page-2
I have a mod_rewrite rule with this:
RewriteRule ^/noticias/([a-zA-Z0-9]+)/([a-zA-Z0-9-]+)-(pagina)-([0-9]+)$ /myphp.php?&id=$1&ipag=$4 [L,NC]
It doesnt work. I think that the problem resides here ([a-zA-Z0-9-]+) because the title is split with "-" and the rule doenst know when the title finish.
Now, if I have a rule like this it works:
mysite.com/noticias/123/here-comes-the-title_page-2
RewriteRule ^/noticias/([a-zA-Z0-9]+)/([a-zA-Z0-9-]+)_(pagina)-([0-9]+)$ /myphp.php?&id=$1&ipag=$4 [L,NC]
How can I fix this to have a "-pagina" instead of "_pagina"
Thanks
-
May I know the platform of website ? If it is wordpress, just one plugin is needed in that case.
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
-
I recently had someone say a resource page is a bad idea. What do you think?
I have a resource page on my website: www.joeborders.com an admin on the google webmaster forum said I should get rid of it. That google might look at it as spammy and gaming the system. Either that or greatly expand on it and make it more complete. I haven't updated it in a while and its far from complete. What do you think? Boot it or grow it?
Link Building | | joebordersmft1 -
Do affiliate links to Amazon product pages boost those pages in the SERPs?
From casual observation, I believe that affiliate links to Amazon product pages, move those Amazon pages up in the SERPs. Does anyone else have an opinion on this? Philosophically, I think that affiliate links should not be counted in the rankings, even if they have not been nofollowed. I think that Google and other search engines should be filtering these links because they are compensated. Thanks for your thoughts.
Link Building | | EGOL2 -
Low Page Authority for key landing pages
Hi guys - I am struggling to understand why I have a Page Authority of 1 (!) for most of my key product landing pages. All of them are linked to directly from the Homepage, which has PA 46 and DA 40. Many of them are also linked to from high ranking external sites. Less valuable pages on the site, with far fewer links, seem to have much higher PA. For some reason these just don't seem to be registering the link juice which is flowing to them. In fact, OSE doesn't seem to register any links for them - perhaps this is the biggest clue? I am at a bit of a loss. Some of these pages still rank highly for relevant keywords on Google. But something clearly isn't quite right. Has anyone experienced similar?
Link Building | | HireSpace0 -
Inbound Links from Broken Pages
Hi all, We have a client who has a lot of inbound links from external pages that are broken/404. The 404 pages are EXTERNAL and linking to my client's pages, but their domain still has authority and their home page (and other pages) still load. My question is: what should we do about this? Do we detox those links, or are they still sending some juice given that they have domain authority, despite the fact that the pages linking to my client are broken? So in other words: - My client is: yyyy.com - They have a link from vvvv.com/services, which is a broken page - So what should we do about this? Thanks all! Gavin
Link Building | | strategemilabs0 -
Do Facebook pages behave like a regular website pages?
Would be grateful for an answer if Back links convey a benefit to facebook pages just like as they do with a regular website page with better search engines search results.
Link Building | | sherohass0 -
How to Check if a Sites Backlink Profile is Penguin Friendly?
Post penguin I am of course very wary about which sites I proactively solicit links from. Here is the scenario. Let's say for example I found a blog relevant to my business sector, had good domain authority/moz rank and noticed that they accepted guest posts. Sounds great? Well on the surface it sounds like it would be worth reaching out to the blog owner - but what if that blog had been involved in some really shady link building practices in the past and the reality is that I could end up damaging my own site by association. Can anyone share any useful resources such as articles or tools that will help to understand how to qualify if a sites backlink profile is shady and should be avoided as a link prospect?
Link Building | | Luia0 -
What pages to nofollow?
We are doing a homepage redesign on our site and as I was going through the code I noticed no links are nofollow links. We have pages such as policies, contact us, links, about us and FAQ that we are not really concerned if anyone visits or if they are indexed. Would it be smart to nofollow these links? Also what other types of links would you recommend we no follow? We would like to get as much link juice as possible to our top categories, but don't want necessary pages to get forgotten. Also, do links higher up on the page get more link juice than items on the bottom of the page? Any knowledge or suggestions on the topic is greatly appreciated!
Link Building | | ClaytonKendall0 -
Widget SEO friendly
Hello, i'm looking for widget SEO friendly. Do you have any examples ? Thanks for answering. A.
Link Building | | android_lyon0