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
-
Site review : Should I finish on-page optimization before I start link building ??
Site Review am seeing slight improvement with a few keywords and have revamp site do i need to first on page before link building ? I was wondering do i need to complete all on page seo before i move on to link building & marketing content ?? Kindest regards, Stephen sportingdesires
Link Building | | sportingdesires0 -
Content of the Product Page
Hi Everybody : how can you tell if the content on the product pages are accessible by google ? please have a look at my product page : http://www.fireplaceproducts.co.uk/stoves/aarrow-stoves/aarrow-ecoburn-defra-wood-burning-stove/ i used classes in product page to set the key features, construction ,... i notices other companies done these as text and they get better ranks do you think that's the reason ? also to test that i added the text exact same as the key features , construction ,... as additional information at the end of the product page , would you thin that would be considered as duplication ? Kind Regards Arta
Link Building | | fireproductsuk0 -
How can I find page 1 google keyword rankings for a certain page?
Not sure if someone has a tool for this yet or not... Say I have a page like this: http://www.merchantcircle.com/business/Spokane.Painting.Pros.509-210-2799 and I would like to find out what keywords this page ranks for on google. Is there any tool that I can paste in that link and it would give me keywords that it ranks well for? Other than the SEO moz rank checker. It's not like I want to run a campaign just for links like that but I might want to build some links to citations like that so I can move those citations up in the rankings.
Link Building | | Superflys0 -
What happens to (external) linkjuice after you redirect a page?
Hope everybody is having a good day:). I was wondering what happens to the external link juice of a page when you redirect it to a new (and improved) url? For instance www.example.com/lowvolumesword/highvolumeword/ 301 --> www.example.com/highvolumeword/ Will the /highvolumeword/ page lose a lot of (external) linkjuice? Is it best to change the external links to the new url manually or leave them as is and let the 301 redirect take care of it? Is it possible to say that no more than x% of your linkjuice will be passed through via a 301? I hope im making sense here and am looking forward to your reaction. Thanks in advance,
Link Building | | PrizeWize
Lawrence0 -
Does the root domain hold more power then an inner page?
Question, Lets say a new domain is launched, the root domain and an inner page target the same term. Google comes along for the first time and indexes the website. Does it see the target term on the homepage as more important then the inner page because you are putting it on the root? I get the feeling terms connected directly with the root domain have a better chance of ranking then the term being on a inner page. Any thoughts on this?
Link Building | | activitysuper0 -
How do I best leverage second EMD domain with same keyword as an important page on my other site?
(Fictional domain names and keywords follow) Let's say I have an Adense site called Diets.com And on that site I've got 10 pages for the ten most popular diets, and each of those pages is optimized for the diet name. Let's imagine one of these pages is called, "The low-carb diet." Then I went out and purchased the domain name LowCarbDiet.com. How do I best use this new domain name? My options seem to be: 1. Build an adsense site on LowCarbDiet.com. But isn't it a problem when the the same owner of LowCardDiet.com and Diets.com are trying to rank for the same keyword? The new site would be trying to rank for "low carb diet" and so would the appropriate page on Diets.com. I think Google doesn't like this. True? 2. Make a one-page introductory informational site with no ads on the new LowCarbDiet.com. Have a prominent link from that site to the appropriate page on Diets.com for the reader to get "further information." This link with the proper anchor text should help boost the page in Diets.com in the SERPs. IF Google doesn't dislike that. SO...is one idea better than the other? Are neither a good idea? Is there a better way to utilize this new domain? It's important because this second domain name's keyword is about to get a huge amount of search traffic. The new, parked domain name is currently registered in the same name as the existing site's name. I could change the registration or privacy it, but I assume Google maintains records of all past registered owners, and if so, I can't really hide ownership.
Link Building | | bizzer0 -
Link on a https page
Hi there, I have the opportunity to get a link on a https page.I can't see any page rank but it has lots of good links to the http url. How Google will value this link? any study? Thanks
Link Building | | montseyel0 -
Which is the best way to promote a non profit microsite among 15 different friend editorial portals?
Hi, we're a b2b publishing house and we 15 different b2b portals in several industries. There is a non profit org, that has created a microsite keyword rich (www.5permilledifferenza.net). We would like to help it with our portals. We've placed banner on them, but now we would like to write posts in each portal that contain the keyword. Now the point is that our editors cannot write every time an original blogpost for that. The non profit has given us a sample text, beatiful and quite long, with some anchor text in it. Which is the best strategy then? It's a new situation we've never encountered. I have in mind the following choices just say to our editors to post it customizing it when possible. we would then have 15 pages quite similar in 15 different portals of different industries that point to the same links make it short, with only one anchor text, and then have 15 different pages allow the editor posting only if the editors are 'inspired' and could write an original content (we would have then just 2 or 3 post with link) upload the same pdf, with the same links built in, on every portal (that could be connected with either of the previous) Thanks!
Link Building | | gvnns0